-
Notifications
You must be signed in to change notification settings - Fork 282
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
[Backport 1.3] Prevent OptionalDataException from User data structures #3725
[Backport 1.3] Prevent OptionalDataException from User data structures #3725
Conversation
Signed-off-by: Stephen Crawford <[email protected]>
Docker compose contents:
Fill script:
Purge script:
Nodes script:
Unfortunately, I was not able to get the exception with these steps. I left them running for ~15 minutes and nothing happened. I backported the tests for the fix though so this should suffice. |
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.
Let's include tests that validation this scenario [1] into this backport, what do you think?
Signed-off-by: Stephen Crawford <[email protected]>
Even better @peternied! Then I don't need to wait for the script to cause a failure |
Signed-off-by: Stephen Crawford <[email protected]>
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
…urityConfig.java Signed-off-by: Stephen Crawford <[email protected]>
src/integrationTest/java/org/opensearch/test/framework/TestSecurityConfig.java
Outdated
Show resolved
Hide resolved
src/integrationTest/java/org/opensearch/test/framework/matcher/IndexStateIsEqualToMatcher.java
Show resolved
Hide resolved
Signed-off-by: Stephen Crawford <[email protected]>
The failures are around the The code is:
Not sure what is causing this but am looking at why the messages are not getting logged. This is the only test in the class that fails. |
Failure seems unrelated since occurs in clean 1.3 as well. Edit: Craig beat me to opening an issue: #3730 |
Considering what is tested - the auto log events that are creating when a test cluster starts up. This isn't a useful test case, removing. - Related opensearch-project#3730 Signed-off-by: Peter Nied <[email protected]>
FYI - I'm forward porting [1] the commit that removes the AutoInit test case |
Description
This change backports #1970 in order to fix the OptionalDataException issue encountered on the 1.3.x line.
The original change did not have any tests but #3637 added tests, so I backported those as well and the changes required to support them. This resulted in changes to the TestSecurityConfig.User class, the addition of a IndexStateIsEqualToMatcher and User.java.
Issues Resolved
Check List
New functionality has been documentedBy 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.