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

Fix reading strings from the hash index overflow file #2918

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

benjaminwinger
Copy link
Collaborator

When there is multi-threaded contention, data was being appended to the result multiple times because of how optimisticRead behaves.
Replacing the relevant portion of the string instead of appending makes sure that the result is correct and overwrites the null data from previous runs when the optimisticRead finally manages a successful read.

Fixes #2916

When there is multi-threaded contention, data was being appended to the
result multiple times because of how optimisticRead behaves.
Replacing the relevant portion of the string instead of appending makes
sure that the result is correct and overwrites the null data from
previous runs when the optimisticRead finally manages a successful read.

Fixes #2916
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1416881) 93.47% compared to head (e091497) 93.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2918      +/-   ##
==========================================
- Coverage   93.47%   93.46%   -0.01%     
==========================================
  Files        1117     1117              
  Lines       42739    42740       +1     
==========================================
- Hits        39951    39949       -2     
- Misses       2788     2791       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@benjaminwinger benjaminwinger merged commit fb860a6 into master Feb 20, 2024
14 of 15 checks passed
@benjaminwinger benjaminwinger deleted the string_read_fix branch February 20, 2024 18:50
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.

COPY REL fails on "Unable to find primary key value" under the case of large num of long string primary keys
2 participants