-
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
[BUG] legacy code in LogConfigurator #4274
Comments
@rursprung Could you help me double check, it is the "hack" part that cause problem to you? OpenSearch/server/src/main/java/org/opensearch/common/logging/LogConfigurator.java Lines 211 to 229 in 2c27dfd
I want to make sure that removing the customized override of the method I think the part of code can be removed safely in next major version, because: OpenSearch/server/src/main/java/org/opensearch/common/logging/LogConfigurator.java Lines 257 to 262 in 2c27dfd
(This link contains a actual example of the warning message: https://forum.search-guard.com/t/no-known-master-node/1460) 2 it has been declared as a breaking change in document: https://www.elastic.co/guide/en/elasticsearch/reference/6.5/breaking-changes-6.5.html#breaking_65_logging_changes or https://github.com/elastic/elasticsearch/blob/v6.5.0/docs/reference/migration/migrate_6_5.asciidoc#logging-changes In addition, scanning all files from OpenSearch/server/src/main/java/org/opensearch/common/logging/LogConfigurator.java Lines 129 to 131 in 2c27dfd
If you would suggest to avoid scanning files in Additional context:
|
Thank you for reporting the legacy code to be removed! I will close the issue now, if you think scanning all files from |
thanks! i'll re-verify once 3.0.0 is coming out and the removal is in there (it's not a priority for us right now, thus i won't bother testing the latest |
Describe the bug
stumbled across this by chance, the comment claims that this should've been removed with ES 7.0 (which obviously didn't happen if it was still present in 7.10.2 at the time of forking away). it should be re-considered if this is still needed and be refactored accordingly (either by fulfilling the promise of the comment or by removing the comment and cleaning up the code as needed).
OpenSearch/server/src/main/java/org/opensearch/common/logging/LogConfigurator.java
Lines 192 to 201 in 6629b09
To Reproduce
n/a
Expected behavior
no code which has a comment stating that it should've been removed a long time ago.
Plugins
n/a
Screenshots
n/a
Host/Environment (please complete the following information):
n/a
Additional context
stumbled across this because this code tries to scan all files present in the
config/
folder on startup and it failed on some file for us (i still don't know why... but got a workaround now so i can safely ignore the problem for the time being). it'd be great if it wouldn't have to scan all files even just for startup time reasons (as plugin configs are now also in this folder there will be more and more files to scan, increasing the startup time - not by much, but still: "death by a thousand cuts" applies here as well).The text was updated successfully, but these errors were encountered: