-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Close first engine instance before creating second #1457
Conversation
When creating the second instance of an InternalEngine using the same translog config of the default InternalEngine instance, the second instance will attempt to delete all the existing translog files. I found a deterministic test failure when running with the seed `E3E6AAD95ABD299B`. This change to use a distinct location for the translog seems appropriate in any case, though I can't explain why this test doesn't deterministically fail for all test seeds. Signed-off-by: Andrew Ross <andrross@amazon.com>
Can one of the admins verify this patch? |
✅ Gradle Wrapper Validation success aa7f004 |
✅ DCO Check Passed aa7f004 |
✅ Gradle Precommit success aa7f004 |
As opposed to creating a second engine instance with a different translog location, just close the first one before creating the second. Signed-off-by: Andrew Ross <andrross@amazon.com>
✅ DCO Check Passed e2eb1b0 |
✅ Gradle Wrapper Validation success e2eb1b0 |
✅ Gradle Precommit success e2eb1b0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
start gradle check |
Retrying |
start gradle check |
Failed test not reproducible
|
start gradle check |
start gradle check |
1 similar comment
start gradle check |
…in EnginePlugin (#1404) (#1424) * Add extension point for custom TranslogDeletionPolicy in EnginePlugin. (#1404) This commit adds a method that can be used to provide a custom TranslogDeletionPolicy from within plugins that implement the EnginePlugin interface. This enables plugins to provide a custom deletion policy with the current limitation that only one plugin can override the policy. An exception will be thrown if more than one plugin overrides the policy. Signed-off-by: Rabi Panda <adnapibar@gmail.com> * Close first engine instance before creating second (#1457) When creating the second instance of an InternalEngine using the same translog config of the default InternalEngine instance, the second instance will attempt to delete all the existing translog files. I found a deterministic test failure when running with the seed `E3E6AAD95ABD299B`. As opposed to creating a second engine instance with a different translog location, just close the first one before creating the second. Signed-off-by: Andrew Ross <andrross@amazon.com> Co-authored-by: Andrew Ross <andrross@amazon.com>
Description
This fixes a test that appears to fail for certain test seeds. The following is a test run that will fail without this fix:
Issues Resolved
None
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.