-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
data race between test and product code in partition compaction #24040
Comments
davidby-influx
changed the title
data race between test an dproduct code in parition compaction
data race between test and product code in partition compaction
Jan 13, 2023
This was referenced Jan 13, 2023
2 tasks
philjb
added a commit
that referenced
this issue
Jan 30, 2024
TestPartition_Compact_Write_Fail test was not locking the partition before changing the value of MaxLogFileSize. This PR exports the mutex of the partition to allow the test to access it and lock. Alternatives require more changes such as a Setter method if we need to hide the mutex. * fixes #24042, for #24040
philjb
added a commit
that referenced
this issue
Jan 31, 2024
* fix(tsi1/partition/test): fix data race in test code TestPartition_Compact_Write_Fail test was not locking the partition before changing the value of MaxLogFileSize. This PR exports the mutex of the partition to allow the test to access it and lock. Alternatives require more changes such as a Setter method if we need to hide the mutex. * fixes #24042, for #24040 * chore: complete renaming of mutex in file and fix flux test The flux test is another failing test because it was using a relative time range.
bnpfeife
pushed a commit
that referenced
this issue
Jan 31, 2024
* fix(tsi1/partition/test): fix data race in test code TestPartition_Compact_Write_Fail test was not locking the partition before changing the value of MaxLogFileSize. This PR exports the mutex of the partition to allow the test to access it and lock. Alternatives require more changes such as a Setter method if we need to hide the mutex. * fixes #24042, for #24040 * chore: complete renaming of mutex in file and fix flux test The flux test is another failing test because it was using a relative time range.
bnpfeife
pushed a commit
that referenced
this issue
Jan 31, 2024
* fix(tsi1/partition/test): fix data race in test code TestPartition_Compact_Write_Fail test was not locking the partition before changing the value of MaxLogFileSize. This PR exports the mutex of the partition to allow the test to access it and lock. Alternatives require more changes such as a Setter method if we need to hide the mutex. * fixes #24042, for #24040 * chore: complete renaming of mutex in file and fix flux test The flux test is another failing test because it was using a relative time range.
bnpfeife
added a commit
that referenced
this issue
Jan 31, 2024
* fix: update broken flux and perf tests (main-2.x) (#24617) * chore: download repository key to file * fix: broken perf tests Some perf tests had to be temporarily disabled. Work is needed in the pref_tests repositories to make them work again. * fix(tsi1/partition/test): fix data race in test code (#24613) * fix(tsi1/partition/test): fix data race in test code TestPartition_Compact_Write_Fail test was not locking the partition before changing the value of MaxLogFileSize. This PR exports the mutex of the partition to allow the test to access it and lock. Alternatives require more changes such as a Setter method if we need to hide the mutex. * fixes #24042, for #24040 * chore: complete renaming of mutex in file and fix flux test The flux test is another failing test because it was using a relative time range. --------- Co-authored-by: Phil Bracikowski <[email protected]>
bnpfeife
added a commit
that referenced
this issue
Jan 31, 2024
* fix: update broken flux and perf tests (main-2.x) (#24617) * chore: download repository key to file * fix: broken perf tests Some perf tests had to be temporarily disabled. Work is needed in the pref_tests repositories to make them work again. * fix(tsi1/partition/test): fix data race in test code (#24613) * fix(tsi1/partition/test): fix data race in test code TestPartition_Compact_Write_Fail test was not locking the partition before changing the value of MaxLogFileSize. This PR exports the mutex of the partition to allow the test to access it and lock. Alternatives require more changes such as a Setter method if we need to hide the mutex. * fixes #24042, for #24040 * chore: complete renaming of mutex in file and fix flux test The flux test is another failing test because it was using a relative time range. --------- Co-authored-by: Phil Bracikowski <[email protected]>
This was referenced Sep 16, 2024
Closed
Closing this! The backports are in all upstream branches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an occasional data race between a test and the product code. The test needs to lock the partition for writing before modifying the
MaxLogFileSize
.The text was updated successfully, but these errors were encountered: