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

db_test2 BackgroundPurgeTest intermittently failing on main #236

Closed
Yuval-Ariel opened this issue Nov 11, 2022 · 1 comment · Fixed by #237
Closed

db_test2 BackgroundPurgeTest intermittently failing on main #236

Yuval-Ariel opened this issue Nov 11, 2022 · 1 comment · Fixed by #237
Assignees
Labels
bug Something isn't working

Comments

@Yuval-Ariel
Copy link
Contributor

Describe the bug
db_test2 BackgroundPurgeTest fails:
[ RUN ] DBTest2.BackgroundPurgeTest db/db_test2.cc:5909: Failure Expected: (value) > (base_value), actual: 2048 vs 2048

To Reproduce
Steps to reproduce the behavior:
while ./db_test2 --gtest_filter=DBTest2.BackgroundPurgeTest; do sleep 1; done
get the CPU busy

System (please complete the following information):
azure default instances Standard_L16s_v2

@Yuval-Ariel
Copy link
Contributor Author

this happens since the iterator is deleted before the sleeping task is scheduled in the LOW pri pool which causes the purge to be executed (instead of being delayed by the sleeping bg task)

Yuval-Ariel added a commit that referenced this issue Nov 11, 2022
fix by adding WaitUntilSleeping before deleting the iterator
@Yuval-Ariel Yuval-Ariel self-assigned this Nov 11, 2022
@Yuval-Ariel Yuval-Ariel added the bug Something isn't working label Nov 11, 2022
@Yuval-Ariel Yuval-Ariel linked a pull request Nov 11, 2022 that will close this issue
Yuval-Ariel added a commit that referenced this issue Nov 13, 2022
fix by adding WaitUntilSleeping before deleting the iterator
Yuval-Ariel added a commit that referenced this issue Nov 15, 2022
fix by adding WaitUntilSleeping before deleting the iterator
Yuval-Ariel added a commit that referenced this issue Nov 25, 2022
fix by adding WaitUntilSleeping before deleting the iterator
Yuval-Ariel added a commit that referenced this issue Nov 25, 2022
fix by adding WaitUntilSleeping before deleting the iterator
Yuval-Ariel added a commit that referenced this issue Apr 30, 2023
fix by adding WaitUntilSleeping before deleting the iterator
Yuval-Ariel added a commit that referenced this issue May 4, 2023
fix by adding WaitUntilSleeping before deleting the iterator
udi-speedb pushed a commit that referenced this issue Nov 13, 2023
fix by adding WaitUntilSleeping before deleting the iterator
udi-speedb pushed a commit that referenced this issue Nov 15, 2023
fix by adding WaitUntilSleeping before deleting the iterator
udi-speedb pushed a commit that referenced this issue Dec 3, 2023
fix by adding WaitUntilSleeping before deleting the iterator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant