-
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
[7.16] Drop non-setting deprecations down to warning level #80374
[7.16] Drop non-setting deprecations down to warning level #80374
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
After this change, there will be 189 usages of org.elasticsearch.common.logging.DeprecationLogger#critical in the 7.16 branch. |
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.
LGTM, I left one question
@@ -511,7 +511,7 @@ public void testRewriteForUpdate() throws IOException { | |||
assertTrue(transformConfigRewritten.getSettings().getDatesAsEpochMillis()); | |||
assertFalse(transformConfigRewritten.getSettings().getAlignCheckpoints()); | |||
|
|||
assertWarnings(TransformDeprecations.ACTION_MAX_PAGE_SEARCH_SIZE_IS_DEPRECATED); | |||
assertWarnings(org.apache.logging.log4j.Level.WARN, TransformDeprecations.ACTION_MAX_PAGE_SEARCH_SIZE_IS_DEPRECATED); |
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.
Any particular reason these are fully qualified?
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.
Weird .. Intellij chose to do that. Fixed in 0718f87
(#80374)
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.
LGTM
@elasticmachine update branch |
Complementary to #79665 this change
will reduce the deprecation logging level to WARN for (most) all non-settings that
continue to exist in 8.0+.
===
Note - I identified which logs needed to be reduced from the work at #80167. In that PR I used IntelliJ to refactor ALL deprecations in 8.0+ to log at warning level. One of those commits
967264e
(#80167) that got squashed in the final merge was only for non-settings. So that commit has all of the non-settings that still exist in 8.0, so I cherry-picked that commit back to 7.16 and only merged files that merged cleanly. So there are likely a couple critical level that could be adjusted since they had additional logic that would require additional manual evaluation. I also had to update the tests since in 7.16 the default assertion is for critical, but in 8.0+ the default assertion is for warning level. There were only a few outliers and have confidence that the list here is accurate and mostly complete.