-
Notifications
You must be signed in to change notification settings - Fork 95
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
[PCP-21] Titan GC doesn’t affect online write #147
Conversation
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
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.
Look good to me overall! Some minor comments.
"Encounter unexpected blob index. Please open DB with " | ||
"rocksdb::blob_db::BlobDB instead."); | ||
return; | ||
} |
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.
ok, I didn't realize Titan doesn't support MultiGet (needs to make is_blob
a vector of boolean for each key being query).
Signed-off-by: tabokie <xy.tao@outlook.com>
56a3d1b
to
704aea1
Compare
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
logger_, statistics_, env_); | ||
pinnable_val_->PinSelf(); | ||
if (!merge_status.ok()) { | ||
state_ = kCorrupt; | ||
} else if (is_blob_index_ != nullptr) { | ||
*is_blob_index_ = (type == kTypeBlobIndex); |
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.
should update state_
too ?
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.
I think state_ is kFound here. kBlobIndex is an abnormal state.
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.
LGTM overall, but I'm not quite familiar with the implementation to find potential bugs. PTAL again
@yiwu-arbug
Signed-off-by: tabokie <xy.tao@outlook.com>
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.
LGTM
/test |
Signed-off-by: tabokie <xy.tao@outlook.com>
Please fix failed tests |
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Let's send this PR to upstream. |
@yiwu-arbug facebook#6447 PTAL |
tikv/tikv#5739 Summary: - support blob index as merge base value - add value type to merge input - support merge operation changes value type (restricted set)
tikv/tikv#5739
Summary: