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(test): fix rdb random fail on OOM #4509

Merged
merged 2 commits into from
Jan 27, 2025
Merged

fix(test): fix rdb random fail on OOM #4509

merged 2 commits into from
Jan 27, 2025

Conversation

adiholden
Copy link
Collaborator

The priodic call to CacheStats updates the shard data memory budget
Setting max_memory_limit before InitWithDbFilename ensures that this callback will be called with the correct max_memory_limit value at its first execution

@adiholden adiholden requested a review from romange January 26, 2025 21:18
@romange
Copy link
Collaborator

romange commented Jan 27, 2025

Finally, the mystery solved! 👏🏼 I suggest you add a comment that this override must be before call InitWithDbFilename() to avoid reshuffles in the future.

romange
romange previously approved these changes Jan 27, 2025
@romange
Copy link
Collaborator

romange commented Jan 27, 2025

also, I added LOG(ERROR) at line 461 to investigate it, so you may convert it back to INFO.

@adiholden adiholden merged commit d88bdb8 into main Jan 27, 2025
10 checks passed
@adiholden adiholden deleted the fix_rdb_test branch January 27, 2025 09:59
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.

2 participants