This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 7cee0ea HDDS-2919. Intermittent failure in TestRDBStore (#3028)
7cee0ea is described below
commit 7cee0ea8ed92f79b54a7f609d401ef465093a46a
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Feb 7 10:59:06 2022 +0100
HDDS-2919. Intermittent failure in TestRDBStore (#3028)
---
.../apache/hadoop/hdds/utils/db/TestRDBStore.java | 36 ----------------------
1 file changed, 36 deletions(-)
diff --git
a/hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/utils/db/TestRDBStore.java
b/hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/utils/db/TestRDBStore.java
index f95a8ff..c1eafa6 100644
---
a/hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/utils/db/TestRDBStore.java
+++
b/hadoop-hdds/framework/src/test/java/org/apache/hadoop/hdds/utils/db/TestRDBStore.java
@@ -288,42 +288,6 @@ public class TestRDBStore {
}
}
- /**
- * Not strictly a unit test. Just a confirmation of the expected behavior
- * of RocksDB keyMayExist API.
- * Expected behavior - On average, keyMayExist latency < key.get() latency
- * for invalid keys.
- * @throws Exception if unable to read from RocksDB.
- */
- @Test
- public void testRocksDBKeyMayExistApi() throws Exception {
- try (RDBStore newStore =
- new RDBStore(folder.newFolder(), options, configSet)) {
- RocksDB db = newStore.getDb();
-
- //Test with 50 invalid keys.
- long start = System.nanoTime();
- for (int i = 0; i < 50; i++) {
- Assert.assertTrue(db.get(
- org.apache.commons.codec.binary.StringUtils
- .getBytesUtf16("key" + i)) == null);
- }
- long end = System.nanoTime();
- long keyGetLatency = end - start;
-
- start = System.nanoTime();
- for (int i = 0; i < 50; i++) {
- Assert.assertFalse(db.keyMayExist(
- org.apache.commons.codec.binary.StringUtils
- .getBytesUtf16("key" + i), null));
- }
- end = System.nanoTime();
- long keyMayExistLatency = end - start;
-
- Assert.assertTrue(keyMayExistLatency < keyGetLatency);
- }
- }
-
@Test
public void testGetDBUpdatesSince() throws Exception {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]