Skip to content
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

Merged
merged 24 commits into from
Feb 14, 2020

Conversation

tabokie
Copy link
Member

@tabokie tabokie commented Feb 8, 2020

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)

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>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@tabokie tabokie requested a review from yiwu-arbug February 11, 2020 04:26
Copy link
Collaborator

@yiwu-arbug yiwu-arbug left a 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;
}
Copy link
Collaborator

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>
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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should update state_ too ?

Copy link
Member Author

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.

Copy link
Member

@Connor1996 Connor1996 left a 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>
Copy link
Collaborator

@yiwu-arbug yiwu-arbug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Connor1996
Copy link
Member

/test

Connor1996 and others added 2 commits February 14, 2020 12:07
@Connor1996
Copy link
Member

Please fix failed tests

Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
@yiwu-arbug yiwu-arbug merged commit 96d7d16 into tikv:6.4.tikv Feb 14, 2020
@yiwu-arbug
Copy link
Collaborator

Let's send this PR to upstream.

@tabokie
Copy link
Member Author

tabokie commented Feb 22, 2020

@yiwu-arbug facebook#6447 PTAL

yiwu-arbug pushed a commit that referenced this pull request Mar 20, 2020
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)
@tabokie tabokie deleted the green-blob-gc branch December 23, 2020 03:18
@tabokie tabokie mentioned this pull request May 9, 2022
39 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants