-
Notifications
You must be signed in to change notification settings - Fork 25k
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
EvilLoggerTests.testDeprecatedSettings fails assertion #25680
Comments
happened again... not in java9 https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.6+oracle-periodic/157/console |
Another one in 5.6 https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.6+aggressive-opts/49/console I'll awaitsfix this test since it's happened a handful of times this week |
This one is so incredibly puzzling. I can get it to reproduce spuriously, but only on 5.6. Still no idea what is going on. 😐 |
I think I found the issue, it's from interaction with another test. |
And it only happens on 5.6 because the interaction is from deprecated use of |
sweet! so I'll drop the |
Step 1: #26209 |
Step 2: #26210 |
Step 3: b1f6131 |
This commit introduces lazy resolving of the path.scripts setting. This is necessary because the current implementation resolves path.scripts in the constructor for the environment. The problem here is that: - path.scripts is deprecated - the act of getting this setting in the constructor for the environment triggers deprecation logging - constructing the environment happens before logging is configured - performing deprecation logging before logging is configured fails the node on startup Therefore, lazy resolving path.scripts so that construction of the environment can proceed, then configuring logging, then finally resolving this setting enables getting past this issue. Additionally, we fix an evil security test that was causing an evil logging test to fail. The problem here is that if the evil security test executed before and in the same JVM as the evil logging test, then since the test was using path.scripts it would trigger deprecation logging before logging had been configured which would lead to deprecation logging being disabled. Since the evil logging test was relying on deprecation logging being enabled, this would lead to test failures. To fix this, we simply do not set path.scripts in the evil security test. This is not a major change in test behavior since the test was merely explicitly setting the value of path.scripts to the default value anyway. Closes #25680
Closed by b1f6131 |
looks like a consistent behavior where-in this test fails on Java 9 in CI
console logs:
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+java9-periodic/3193/console
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+java9-periodic/3196/console
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+5.x+java9-periodic/3198/console
reproduce with (I cannot reproduce):
The text was updated successfully, but these errors were encountered: