File tree Expand file tree Collapse file tree
hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/utils/db Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,8 +368,8 @@ public void testIsExist() throws Exception {
368368
369369 RDBMetrics rdbMetrics = rdbStore .getMetrics ();
370370 assertEquals (3 , rdbMetrics .getNumDBKeyMayExistChecks ());
371- assertEquals (0 , rdbMetrics .getNumDBKeyMayExistMisses ());
372- assertEquals (2 , rdbMetrics .getNumDBKeyGets ());
371+ assertEquals (2 , rdbMetrics .getNumDBKeyMayExistMisses ());
372+ assertEquals (4 , rdbMetrics .getNumDBKeyGets ());
373373
374374 // Reinsert key for further testing.
375375 testTable .put (key , value );
@@ -437,9 +437,8 @@ public void testGetIfExist() throws Exception {
437437 RDBMetrics rdbMetrics = rdbStore .getMetrics ();
438438 assertEquals (3 , rdbMetrics .getNumDBKeyGetIfExistChecks ());
439439
440- assertEquals (0 , rdbMetrics .getNumDBKeyGetIfExistMisses ());
441-
442- assertEquals (0 , rdbMetrics .getNumDBKeyGetIfExistGets ());
440+ assertEquals (2 , rdbMetrics .getNumDBKeyGetIfExistMisses ());
441+ assertEquals (2 , rdbMetrics .getNumDBKeyGetIfExistGets ());
443442
444443 // Reinsert key for further testing.
445444 testTable .put (key , value );
You can’t perform that action at this time.
0 commit comments