Slow log must use separate underlying logger for each index#47234
Slow log must use separate underlying logger for each index#47234pgomulka merged 3 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/es-core-infra |
pgomulka
left a comment
There was a problem hiding this comment.
@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