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

table_cache: Generate unique ID based on db instance, file number (#205) #208

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

Connor1996
Copy link
Member

  • table_cache: Generate unique ID based on db instance, file number

This change updates the cache key prefix for SST files from relying
on the inode generation number to using a passed-in unique ID. This
ID is composed of a table-cache-specific random ID, as well as the
number of the SST. This should resolve issues around cache collisions
between two different SS tables that happened to have the same
generation number.

Signed-off-by: Connor1996 zbk602423539@gmail.com
Co-authored-by: Bilal Akhtar bilal@cockroachlabs.com

…kv#205)

* table_cache: Generate unique ID based on db instance, file number

This change updates the cache key prefix for SST files from relying
on the inode generation number to using a passed-in unique ID. This
ID is composed of a table-cache-specific random ID, as well as the
number of the SST. This should resolve issues around cache collisions
between two different SS tables that happened to have the same
generation number.

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
Co-authored-by: Bilal Akhtar <bilal@cockroachlabs.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 Author

截屏2020-11-10 下午7 58 29

Don't know why it's always failing in make-image stage. @yiwu-arbug Can you merge it forcibly?

@yiwu-arbug
Copy link
Collaborator

WeChatWorkScreenshot_7e1a24a7-0afe-4d38-acd1-9fd923d1476c

@Connor1996 yes. And feel free to remove these two CI from travis.

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.

None yet

3 participants