-
Notifications
You must be signed in to change notification settings - Fork 24.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
SearchableSnapshotsLicenseIntegTests.testShardAllocationOnInvalidLicense fails when recreating its license #72329
Comments
Pinging @elastic/es-distributed (Team:Distributed) |
…License (elastic#72528) This test fails sometimes on CI (see elastic#72329) when recreating the license. It's not clear to me why that happens but I suspect batched cluster state updates, so this pull request adds some waiting points in the test. Closes elastic#72329
It looks like the same error just occurred in https://gradle-enterprise.elastic.co/s/h7xi5tf25tkjm |
I merged #74621 to add some debug logging traces, hopefully this will help me to understand why the test fails. |
…ardAllocationOnInvalidLicense (elastic#74621) Relates elastic#72329
We're waiting for this CI failure to happen again so that we can do more investigation now more logging was added. In case someone see a CI failure please add the build scan here 🙏🏻 |
Failed again today in https://gradle-enterprise.elastic.co/s/o5xbwrtlotewu |
…lidLicense This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes elastic#72329
…lidLicense (#77757) This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes #72329
…lidLicense (elastic#77757) This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes elastic#72329
…lidLicense (elastic#77757) This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes elastic#72329
…lidLicense (elastic#77757) This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes elastic#72329
…lidLicense (#77757) (#77761) This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes #72329
…lidLicense (#77757) (#77760) This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes #72329
…lidLicense (#77757) (#77759) This tests sometimes fails because it expects the last PostStartTrialRequest to always "upgrade" the current license that it just nullified to a trial license; but there is a race in this test with the LicenceService that detects that no license exists in the cluster state (because the test set it to null) and self generates a trial license for the cluster too. When the self generation is processed before the PostStartTrialRequest the latter will return a TRIAL_ALREADY_ACTIVATED response. Since the purpose of this test is to verify that the searchable snapshot shards failed when the license change and came back when the trial license if activated again, I think we can just adjust the test to accommodate for the 2 types of responses. Closes #72329
Build scan:
https://gradle-enterprise.elastic.co/s/2bpdnr5jqux6y/tests
Repro line:
Reproduces locally?: no
Applicable branches: master
Failure history:
https://build-stats.elastic.co/goto/d7017643bd9139fb127d1f231d6d81d2
Failure excerpt:
The text was updated successfully, but these errors were encountered: