-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Slow log must use separate underlying logger for each index #47234
Conversation
Pinging @elastic/es-core-infra |
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.
@alexshadow007 thank you for looking into this. I think your fix should work.
However we certainly miss testing around this. Do you think you could add appropriate unit tests to reproduce this?
b905532
to
6ca5c2b
Compare
@pgomulka I added test for SearchSlowLog, is it fine? |
@alexshadow007 added test is really good! thank you for this
Or maybe we could try that approach in |
@pgomulka
|
@alexshadow007 you are right. I was thinking that getLevel would be changed to something to return the level of the underlying logger
I am not sure we really need that |
@pgomulka Yes, i think it is not bad idea. I will do it and add test case. |
6ca5c2b
to
93a9e26
Compare
@pgomulka Done |
ok to test |
@elasticmachine run elasticsearch-ci/packaging-sample |
@elasticmachine run elasticsearch-ci/2 |
1 similar comment
@elasticmachine run elasticsearch-ci/2 |
@alexshadow007 there are some test failures in CI, but they seem unrelated. I will try to confirm with the team the reason it is failing (I can't reproduce it). |
@elasticmachine update branch |
@elasticmachine run elasticsearch-ci/packaging-sample |
@elasticmachine run elasticsearch-ci/packaging-sample-matrix |
…47234) SlowLog instances should not share the same underlying logger, as it would cause different indexes override each other levels. When creating underlying logger, unique per index identifier should be used. Name + IndexSettings.UUID Closes elastic#42432
…47234) SlowLog instances should not share the same underlying logger, as it would cause different indexes override each other levels. When creating underlying logger, unique per index identifier should be used. Name + IndexSettings.UUID Closes elastic#42432
…KPORT(#47234) (#48176) * Slow log must use separate underlying logger for each index (#47234) SlowLog instances should not share the same underlying logger, as it would cause different indexes override each other levels. When creating underlying logger, unique per index identifier should be used. Name + IndexSettings.UUID Closes #42432
…KPORT(#47234) (#48177) * Slow log must use separate underlying logger for each index (#47234) SlowLog instances should not share the same underlying logger, as it would cause different indexes override each other levels. When creating underlying logger, unique per index identifier should be used. Name + IndexSettings.UUID Closes #42432
Closes #42432