-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDDS-1691 : RDBTable#isExist should use Rocksdb#keyMayExist #1013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/label ozone |
hadoop-hdds/common/src/test/java/org/apache/hadoop/utils/db/TestRDBStore.java
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
|
Test failures are unrelated. |
hadoop-hdds/common/src/main/java/org/apache/hadoop/utils/db/RDBTable.java
Show resolved
Hide resolved
…tive case unit test.
…tive case unit test.
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
mukul1987
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, the patch looks good to me.
bharatviswa504
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. Thank You @avijayanhwx for the contribution and @mukul1987 for the review.
I will commit this to trunk.
Call sendto(key, null) to delete from a table by key. Author: Boris S <[email protected]> Author: Boris S <[email protected]> Author: Boris Shkolnik <[email protected]> Reviewers: Wei Song <[email protected]> Closes apache#1013 from sborya/EspressoDelete
RDBTable#isExist can use Rocksdb#keyMayExist, this avoids the cost of reading the value for the key.
Please refer,
https://github.com/facebook/rocksdb/blob/7a8d7358bb40b13a06c2c6adc62e80295d89ed05/java/src/main/java/org/rocksdb/RocksDB.java#L2184