mirror of https://github.com/apache/kafka.git
- Flaky behavior `LoggingResourceTest#testSetLevelDefaultScope` sometimes fails by not capturing its expected WARN log. - Root cause Both `LoggersTest#testSetLevelWithValidRootLoggerNames` and `LoggingResourceTest#testSetLevelDefaultScope` may share the same `LoggerContext` when executed in the same JVM. `LoggersTest#testSetLevelWithValidRootLoggerNames` calls `loggers.setLevel("", ERROR)`, which mutates the global root logger level to ERROR and suppresses WARN logs, which causes subsequent tests to fail to emit WARN-level output. - Fix in this PR Resets the Log4j configuration after each test in `LoggersTest`, ensuring that any global changes are reverted. Reviewers: Chia-Ping Tsai <chia7712@gmail.com> |
||
---|---|---|
.. | ||
api | ||
basic-auth-extension | ||
file/src | ||
json | ||
mirror/src | ||
mirror-client/src | ||
runtime/src | ||
test-plugins/src/main | ||
transforms/src |