-
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
It is possible to disable NodeAndClusterIdConverter plugin. #4322
Conversation
Gradle Check (Jenkins) Run Completed with:
|
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.
Would you mind explaining why you need this?
Is there precedent where we disable other logging plugins this way elsewhere in the code?
Either way will need tests.
This PR is related to the integration tests for the OpenSearch security plugin. For more details, please see the conversation in another PR: opensearch-project/security#1967 (comment) |
d78b562
to
225df5f
Compare
I have pushed unit tests related to the modified code fragments. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
225df5f
to
98de5e7
Compare
Signed-off-by: Lukasz Soszynski <lukasz.soszynski@eliatra.com>
98de5e7
to
7719501
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
I noticed that the build fails with the following error message:
I found another error message which seems to be related to the problem:
Unfortunately, both error messages are not very descriptive. @peternied could you help to figure out what is wrong, please? |
@lukasz-soszynski-eliatra I'm not sure this is the right change, from your description I think the issue is that we cannot run more than one OpenSearch node inside a single JVM without this issue coming up. It seems like the static field should be modified so it can handle this scenario - that would address the root cause. If you don't see a way to address the root cause, then I'd recommend creating can create an issue on OpenSearch so it can be triaged / reviewed, then we could work around it by overloading the logger with like was done here for JarHell - see where it was discussed #3905 |
@peternied I created an issue: #4466 |
@lukasz-soszynski-eliatra I'm going to close this PR out as I don't think this will be moved forward with. Thanks for the issue! |
Description
New system property
org.opensearch.common.logging.NodeAndClusterIdConverter.enabled
added to disable custom Log4j2 plugin NodeAndClusterIdConverter.Probably this change needs to be merged to another or additional branch.
Issues Resolved
[List any issues this PR will resolve]
Check List
By 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.