abhishekrb19 opened a new issue, #14373: URL: https://github.com/apache/druid/issues/14373
Sometimes the `ParametrizedUriEmitterConfigTest.testDefaults` fails: ``` 2023-06-05T23:34:22.1260159Z [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 41.884 s <<< FAILURE! - in org.apache.druid.java.util.emitter.core.ParametrizedUriEmitterConfigTest 2023-06-05T23:34:22.1261394Z [ERROR] org.apache.druid.java.util.emitter.core.ParametrizedUriEmitterConfigTest.testDefaults Time elapsed: 0.002 s <<< FAILURE! 2023-06-05T23:34:22.1262124Z java.lang.AssertionError: expected:<26> but was:<27> 2023-06-05T23:34:22.1262565Z at org.junit.Assert.fail(Assert.java:89) 2023-06-05T23:34:22.1263003Z at org.junit.Assert.failNotEquals(Assert.java:835) 2023-06-05T23:34:22.1263444Z at org.junit.Assert.assertEquals(Assert.java:647) 2023-06-05T23:34:22.1263892Z at org.junit.Assert.assertEquals(Assert.java:633) 2023-06-05T23:34:22.1264694Z at org.apache.druid.java.util.emitter.core.ParametrizedUriEmitterConfigTest.testDefaults(ParametrizedUriEmitterConfigTest.java:50) 2023-06-05T23:34:22.1265467Z at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2023-06-05T23:34:22.1266074Z at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2023-06-05T23:34:22.1266748Z at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2023-06-05T23:34:22.1267317Z at java.lang.reflect.Method.invoke(Method.java:498) 2023-06-05T23:34:22.1267867Z at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) 2023-06-05T23:34:22.1268516Z at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) 2023-06-05T23:34:22.1269187Z at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) 2023-06-05T23:34:22.1269869Z at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) 2023-06-05T23:34:22.1270465Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) 2023-06-05T23:34:22.1271047Z at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) 2023-06-05T23:34:22.1271969Z at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) 2023-06-05T23:34:22.1272576Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) 2023-06-05T23:34:22.1273268Z at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) 2023-06-05T23:34:22.1273843Z at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) 2023-06-05T23:34:22.1274357Z at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) 2023-06-05T23:34:22.1274900Z at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) 2023-06-05T23:34:22.1275426Z at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) 2023-06-05T23:34:22.1275950Z at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) 2023-06-05T23:34:22.1276660Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) 2023-06-05T23:34:22.1277191Z at org.junit.runners.ParentRunner.run(ParentRunner.java:413) 2023-06-05T23:34:22.1277671Z at org.junit.runners.Suite.runChild(Suite.java:128) 2023-06-05T23:34:22.1278133Z at org.junit.runners.Suite.runChild(Suite.java:27) 2023-06-05T23:34:22.1278619Z at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) 2023-06-05T23:34:22.1279129Z at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) 2023-06-05T23:34:22.1279671Z at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) 2023-06-05T23:34:22.1280204Z at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) 2023-06-05T23:34:22.1280731Z at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) 2023-06-05T23:34:22.1281248Z at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) 2023-06-05T23:34:22.1281766Z at org.junit.runners.ParentRunner.run(ParentRunner.java:413) 2023-06-05T23:34:22.1282328Z at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) 2023-06-05T23:34:22.1283051Z at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) 2023-06-05T23:34:22.1283855Z at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) 2023-06-05T23:34:22.1284591Z at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) 2023-06-05T23:34:22.1285309Z at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:69) 2023-06-05T23:34:22.1286024Z at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:174) 2023-06-05T23:34:22.1286734Z at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:456) 2023-06-05T23:34:22.1287407Z at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:169) 2023-06-05T23:34:22.1288030Z at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:595) 2023-06-05T23:34:22.1288653Z at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:581) 2023-06-05T23:34:22.1289002Z 2023-06-05T23:34:25.4233314Z [INFO] 2023-06-05T23:34:25.4234768Z [INFO] Results: 2023-06-05T23:34:25.4235964Z [INFO] 2023-06-05T23:34:25.4237796Z [ERROR] Failures: 2023-06-05T23:34:25.4239542Z [ERROR] org.apache.druid.java.util.emitter.core.ParametrizedUriEmitterConfigTest.testDefaults 2023-06-05T23:34:25.4241625Z [ERROR] Run 1: ParametrizedUriEmitterConfigTest.testDefaults:50 expected:<26> but was:<27> 2023-06-05T23:34:25.4243254Z [ERROR] Run 2: ParametrizedUriEmitterConfigTest.testDefaults:50 expected:<26> but was:<27> 2023-06-05T23:34:25.4244866Z [ERROR] Run 3: ParametrizedUriEmitterConfigTest.testDefaults:50 expected:<26> but was:<27> 2023-06-05T23:34:25.4246455Z [ERROR] Run 4: ParametrizedUriEmitterConfigTest.testDefaults:50 expected:<26> but was:<27> ``` @clintropolis and I briefly looked into it. It seems like [`DruidProcessingConfigTest`](https://github.com/apache/druid/blob/master/processing/src/test/java/org/apache/druid/query/DruidProcessingConfigTest.java#L58 ) might be a candidate -- this test injects a mock runtime and cleans up the mock after the test is complete. The runtime (mocked or otherwise) gets used in the [static block](https://github.com/apache/druid/blob/master/processing/src/main/java/org/apache/druid/java/util/emitter/core/BaseHttpEmittingConfig.java#L45), so maybe there's a leak in there somewhere that affects subsequent tests that rely on a real runtime. The other potential candidates are `HttpEmitterConfigTest` and related usages of these runtime settings. One GHA run that failed: https://github.com/apache/druid/actions/runs/5170252975/jobs/9339543157?pr=14352 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
