-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
WIP: [DocDB] Add additional logging about SST files #25465
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for infallible-bardeen-164bc9 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -76,6 +76,8 @@ struct TableProperties { | |||
// The name of the filter policy used in this table. | |||
// If no filter policy is used, `filter_policy_name` will be an empty string. | |||
std::string filter_policy_name; | |||
// Cache key prefix used for detecting collision of SST table. | |||
std::string cache_key_prefix = ""; |
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.
metadata_cache_key_prefix_hex_str
?
BTW, do we need data file cache key prefix as well?
hex_stream << static_cast<unsigned int>( | ||
static_cast<unsigned char>(rep_->metadata_writer->compressed_cache_key_prefix.data[i])); | ||
} | ||
rep_->props.cache_key_prefix = hex_stream.str(); |
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.
We can just use
rep_->props.metadata_cache_key_prefix = Slice(rep_->metadata_writer->compressed_cache_key_prefix.data, rep_->metadata_writer->compressed_cache_key_prefix.size).ToDebugHexString();
<< "file_size" << fd.GetTotalFileSize(); | ||
<< "file_size" << fd.GetTotalFileSize() | ||
<< "metadata_size" << fd.GetBaseFileSize() | ||
<< "cache_key_prefix" << info.table_properties.cache_key_prefix; |
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.
"metadata_cache_key_prefix" ?
Issue - [DocDB] Add additional logging about SST files #20880