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

Wait for pending commits to finish during shutdown. #1663

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prateekm
Copy link
Contributor

@prateekm prateekm commented Apr 7, 2023

Issue: BlobStoreStateBackendIntegrationTest.testStopAndRestart fails occassionally if SamzaContainer shuts down before pending commits for its tasks are complete. Note: This issue does not affect correctness of commits, but does affect test reliability.

Fix: 1) Wait for pending commits to complete before shutting the container down. 2) Shut down commitThreadPool after the pending commits are complete (otherwise queued tasks requried to complete commits will be cancelled and commits will be unsuccessful).

Test: BlobStoreStateBackendIntegrationTest.testStopAndRestart passes in a loop.

@prateekm
Copy link
Contributor Author

prateekm commented Apr 7, 2023

@bharathkk

@prateekm
Copy link
Contributor Author

This seems to time out builds, presumably due to test timeouts. Will debug.

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.

1 participant