Revert "Use sync.map to scale ecache better"

This reverts commit 17d0190706.
This commit is contained in:
Yecheng Fu
2018-08-24 16:42:27 +08:00
parent 2c933695fa
commit a2cc1b1a20
2 changed files with 27 additions and 14 deletions

View File

@@ -731,7 +731,7 @@ func TestInvalidateCachedPredicateItemOfAllNodes(t *testing.T) {
// there should be no cached predicate any more
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
if nodeCache, exist := ecache.GetNodeCache(test.nodeName); exist {
if nodeCache, exist := ecache.nodeToCache[test.nodeName]; exist {
if _, exist := nodeCache.cache[testPredicate]; exist {
t.Errorf("Failed: cached item for predicate key: %v on node: %v should be invalidated",
testPredicate, test.nodeName)