gianm commented on issue #12639:
URL: https://github.com/apache/druid/issues/12639#issuecomment-1156807762

   You should be able to fix the timestamp ones by setting the option in your 
IDE to respect the Surefire `argLine` during test execution. There is one in 
there that sets the `user.timezone=UTC`, which is how Druid servers get run in 
production too.
   
   For `testConcurrentQueries`, I saw a Travis failure recently here: 
https://app.travis-ci.com/github/apache/druid/jobs/573579841. It's a little 
hard to follow the stack trace because of how long the messages are. But this 
appears in them and seems interesting: `NullPointerException: Cannot invoke 
"java.util.Map.entrySet()" because "map" is null`.
   
   ```
   [ERROR] 
org.apache.druid.sql.avatica.DruidAvaticaJsonHandlerTest.testConcurrentQueries  
Time elapsed: 3.27 s  <<< ERROR!
   
   java.util.concurrent.ExecutionException: java.lang.RuntimeException: 
org.apache.calcite.avatica.AvaticaSqlException: Error -1 (00000) : Error while 
executing SQL "SELECT COUNT(*) + 198 AS ci FROM foo": Remote driver error: 
QueryInterruptedException: java.lang.RuntimeException: Error while applying 
rule DruidOuterQueryRel(SELECT_PROJECT), args 
[rel#284910:LogicalProject.NONE.[](input=RelSubset#284909,ci=+($0, 198)), 
rel#285014:DruidQueryRel.NONE.[](query={"queryType":"timeseries","dataSource":{"type":"table","name":"foo"},"intervals":{"type":"intervals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},"descending":false,"virtualColumns":[],"filter":null,"granularity":{"type":"all"},"aggregations":[{"type":"count","name":"a0"}],"postAggregations":[],"limit":2147483647,"context":{"nativeQueryIds":"[8994ef1e-cf63-4631-bd6c-1792d25f306e]","sqlQueryId":"d5f27d60-00bf-449d-bc25-10eac48f63ed","sqlStringifyArrays":false}},signature={a0:LONG})]
 -> RuntimeExcepti
 on: java.lang.RuntimeException: Error while applying rule 
DruidOuterQueryRel(SELECT_PROJECT), args 
[rel#284910:LogicalProject.NONE.[](input=RelSubset#284909,ci=+($0, 198)), 
rel#285014:DruidQueryRel.NONE.[](query={"queryType":"timeseries","dataSource":{"type":"table","name":"foo"},"intervals":{"type":"intervals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},"descending":false,"virtualColumns":[],"filter":null,"granularity":{"type":"all"},"aggregations":[{"type":"count","name":"a0"}],"postAggregations":[],"limit":2147483647,"context":{"nativeQueryIds":"[8994ef1e-cf63-4631-bd6c-1792d25f306e]","sqlQueryId":"d5f27d60-00bf-449d-bc25-10eac48f63ed","sqlStringifyArrays":false}},signature={a0:LONG})]
 -> RuntimeException: Error while applying rule 
DruidOuterQueryRel(SELECT_PROJECT), args 
[rel#284910:LogicalProject.NONE.[](input=RelSubset#284909,ci=+($0, 198)), 
rel#285014:DruidQueryRel.NONE.[](query={"queryType":"timeseries","dataSource":{"type":"table","name":"f
 
oo"},"intervals":{"type":"intervals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},"descending":false,"virtualColumns":[],"filter":null,"granularity":{"type":"all"},"aggregations":[{"type":"count","name":"a0"}],"postAggregations":[],"limit":2147483647,"context":{"nativeQueryIds":"[8994ef1e-cf63-4631-bd6c-1792d25f306e]","sqlQueryId":"d5f27d60-00bf-449d-bc25-10eac48f63ed","sqlStringifyArrays":false}},signature={a0:LONG})]
 -> NullPointerException: Cannot invoke "java.util.Map.entrySet()" because 
"map" is null
   
        at 
com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
   
        at 
com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
   
        at 
com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
   
        at 
org.apache.druid.sql.avatica.DruidAvaticaHandlerTest.testConcurrentQueries(DruidAvaticaHandlerTest.java:748)
   
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
   
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
   
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
   
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
   
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
   
        at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
   
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   
        at java.base/java.lang.Thread.run(Thread.java:832)
   
   Caused by: java.lang.RuntimeException: 
org.apache.calcite.avatica.AvaticaSqlException: Error -1 (00000) : Error while 
executing SQL "SELECT COUNT(*) + 198 AS ci FROM foo": Remote driver error: 
QueryInterruptedException: java.lang.RuntimeException: Error while applying 
rule DruidOuterQueryRel(SELECT_PROJECT), args 
[rel#284910:LogicalProject.NONE.[](input=RelSubset#284909,ci=+($0, 198)), 
rel#285014:DruidQueryRel.NONE.[](query={"queryType":"timeseries","dataSource":{"type":"table","name":"foo"},"intervals":{"type":"intervals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},"descending":false,"virtualColumns":[],"filter":null,"granularity":{"type":"all"},"aggregations":[{"type":"count","name":"a0"}],"postAggregations":[],"limit":2147483647,"context":{"nativeQueryIds":"[8994ef1e-cf63-4631-bd6c-1792d25f306e]","sqlQueryId":"d5f27d60-00bf-449d-bc25-10eac48f63ed","sqlStringifyArrays":false}},signature={a0:LONG})]
 -> RuntimeException: java.lang.RuntimeException
 : Error while applying rule DruidOuterQueryRel(SELECT_PROJECT), args 
[rel#284910:LogicalProject.NONE.[](input=RelSubset#284909,ci=+($0, 198)), 
rel#285014:DruidQueryRel.NONE.[](query={"queryType":"timeseries","dataSource":{"type":"table","name":"foo"},"intervals":{"type":"intervals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},"descending":false,"virtualColumns":[],"filter":null,"granularity":{"type":"all"},"aggregations":[{"type":"count","name":"a0"}],"postAggregations":[],"limit":2147483647,"context":{"nativeQueryIds":"[8994ef1e-cf63-4631-bd6c-1792d25f306e]","sqlQueryId":"d5f27d60-00bf-449d-bc25-10eac48f63ed","sqlStringifyArrays":false}},signature={a0:LONG})]
 -> RuntimeException: Error while applying rule 
DruidOuterQueryRel(SELECT_PROJECT), args 
[rel#284910:LogicalProject.NONE.[](input=RelSubset#284909,ci=+($0, 198)), 
rel#285014:DruidQueryRel.NONE.[](query={"queryType":"timeseries","dataSource":{"type":"table","name":"foo"},"intervals":{"type":"inte
 
rvals","intervals":["-146136543-09-08T08:23:32.096Z/146140482-04-24T15:36:27.903Z"]},"descending":false,"virtualColumns":[],"filter":null,"granularity":{"type":"all"},"aggregations":[{"type":"count","name":"a0"}],"postAggregations":[],"limit":2147483647,"context":{"nativeQueryIds":"[8994ef1e-cf63-4631-bd6c-1792d25f306e]","sqlQueryId":"d5f27d60-00bf-449d-bc25-10eac48f63ed","sqlStringifyArrays":false}},signature={a0:LONG})]
 -> NullPointerException: Cannot invoke "java.util.Map.entrySet()" because 
"map" is null
        at 
org.apache.druid.sql.avatica.DruidAvaticaHandlerTest.lambda$testConcurrentQueries$0(DruidAvaticaHandlerTest.java:742)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
        ... 1 more
   ```


-- 
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]

Reply via email to