Skip to content

Commit

Permalink
comment siged delete-range key test due to rocksdb issue #8239
Browse files Browse the repository at this point in the history
Change-Id: I3827d6229ce877fd251d1b0b76219318b53bb542
  • Loading branch information
javeme committed Feb 8, 2022
1 parent a08049f commit 5c09ecb
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,19 @@ public void testDeleteByRangeWithSignedBytes() throws RocksDBException {
byte[] value21 = b("value-2-1");
session.put(TABLE, key21, value21);

session.deleteRange(TABLE, new byte[]{1, -3}, new byte[]{1, 3});
this.commit();

// TODO: enable after fixed rocksdb issue #8239
/*
session.deleteRange(TABLE, new byte[]{1, -3}, new byte[]{1, 3});
Assert.assertThrows(BackendException.class, () -> {
this.commit();
}, e -> {
Assert.assertContains("end key comes before start key",
e.getCause().getMessage());
});
*/

Assert.assertArrayEquals(value11, session.get(TABLE, key11));
Assert.assertArrayEquals(value12, session.get(TABLE, key12));
Assert.assertArrayEquals(value21, session.get(TABLE, key21));
Expand Down

0 comments on commit 5c09ecb

Please sign in to comment.