You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/01/25 11:14:36 UTC

[GitHub] [druid] tomananpatel opened a new issue #10799: Broker throws ClassCastException , while running a movingAverage query

tomananpatel opened a new issue #10799:
URL: https://github.com/apache/druid/issues/10799


   
   ### Affected Version
   
   apache-druid-0.19.0
   apache-druid-0.20.0
   
   
   ### Description
   
   I was just trying to run a movingAverage as described [here ](http://druid.apache.org/docs/latest/development/extensions-contrib/moving-average-query.html),  with all default configuration (apache-druid-0.20.0/bin/start-micro-quickstart).
   
   All I have changed is, added a moving average query extension only on broker.
   
   Here is my sample moving average query, which sent to broker,
   
   `{
     "queryType": "movingAverage",
     "dataSource": "wikipedia",
     "granularity": {
       "type": "period",
       "period": "PT30M"
     },
     "intervals": [
       "2015-09-12T00:00:00Z/2015-09-13T00:00:00Z"
     ],
     "aggregations": [
       {
         "name": "delta30Min",
         "fieldName": "delta",
         "type": "longSum"
       }
     ],
     "averagers": [
       {
         "name": "trailing30MinChanges",
         "fieldName": "delta30Min",
         "type": "longMean",
         "buckets": 7
       }
     ]
   }`
   
   And here is the full stack trace from broker log,
   
   `2021-01-22T15:24:16,382 WARN [qtp1636256669-113[movingAverage_[wikipedia]_8f58f9ab-8a77-439d-bb88-6ea464ba3de8]] org.apache.druid.server.QueryLifecycle - Exception while processing queryId [8f58f9ab-8a77-439d-bb88-6ea464ba3de8]
   java.lang.ClassCastException: org.apache.druid.java.util.common.NonnullPair cannot be cast to java.util.concurrent.ConcurrentHashMap
   	at org.apache.druid.query.RetryQueryRunner.getMissingSegments(RetryQueryRunner.java:145) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.apache.druid.query.RetryQueryRunner.access$300(RetryQueryRunner.java:47) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.apache.druid.query.RetryQueryRunner$RetryingSequenceIterator.hasNext(RetryQueryRunner.java:215) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.BaseSequence.accumulate(BaseSequence.java:43) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.MergeSequence.toYielder(MergeSequence.java:62) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.query.RetryQueryRunner$1.toYielder(RetryQueryRunner.java:134) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.apache.druid.common.guava.CombiningSequence.toYielder(CombiningSequence.java:78) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:88) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:84) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.query.CPUTimeMetricQueryRunner$1.wrap(CPUTimeMetricQueryRunner.java:78) ~[druid-processing-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.WrappingSequence.toYielder(WrappingSequence.java:83) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.query.movingaverage.RowBucketIterable$RowBucketIterator.<init>(RowBucketIterable.java:85) ~[?:?]
   	at org.apache.druid.query.movingaverage.RowBucketIterable.iterator(RowBucketIterable.java:65) ~[?:?]
   	at org.apache.druid.java.util.common.guava.Sequences$1.make(Sequences.java:50) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.BaseSequence.toYielder(BaseSequence.java:66) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.Yielders.each(Yielders.java:32) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.query.movingaverage.MovingAverageIterable$MovingAverageIterator.<init>(MovingAverageIterable.java:165) ~[?:?]
   	at org.apache.druid.query.movingaverage.MovingAverageIterable.iterator(MovingAverageIterable.java:132) ~[?:?]
   	at org.apache.druid.java.util.common.guava.Sequences$1.make(Sequences.java:50) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.BaseSequence.toYielder(BaseSequence.java:66) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.FilteredSequence.toYielder(FilteredSequence.java:54) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:88) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:84) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.query.CPUTimeMetricQueryRunner$1.wrap(CPUTimeMetricQueryRunner.java:78) ~[druid-processing-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.WrappingSequence.toYielder(WrappingSequence.java:83) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.java.util.common.guava.Yielders.each(Yielders.java:32) ~[druid-core-0.20.0.jar:0.20.0]
   	at org.apache.druid.server.QueryResource.doPost(QueryResource.java:221) ~[druid-server-0.20.0.jar:0.20.0]
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_275]
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_275]
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_275]
   	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_275]
   	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) ~[jersey-server-1.19.3.jar:1.19.3]
   	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) ~[jersey-servlet-1.19.3.jar:1.19.3]
   	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) ~[jersey-servlet-1.19.3.jar:1.19.3]
   	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) ~[jersey-servlet-1.19.3.jar:1.19.3]
   	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[javax.servlet-api-3.1.0.jar:3.1.0]
   	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286) ~[guice-servlet-4.1.0.jar:?]
   	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276) ~[guice-servlet-4.1.0.jar:?]
   	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181) ~[guice-servlet-4.1.0.jar:?]
   	at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) ~[guice-servlet-4.1.0.jar:?]
   	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85) ~[guice-servlet-4.1.0.jar:?]
   	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) ~[guice-servlet-4.1.0.jar:?]
   	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) ~[guice-servlet-4.1.0.jar:?]
   	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.apache.druid.server.security.PreResponseAuthorizationCheckFilter.doFilter(PreResponseAuthorizationCheckFilter.java:82) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.apache.druid.server.security.AllowHttpMethodsResourceFilter.doFilter(AllowHttpMethodsResourceFilter.java:78) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.apache.druid.server.security.AllowOptionsResourceFilter.doFilter(AllowOptionsResourceFilter.java:75) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.apache.druid.server.security.AllowAllAuthenticator$1.doFilter(AllowAllAuthenticator.java:84) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.apache.druid.server.security.AuthenticationWrappingFilter.doFilter(AuthenticationWrappingFilter.java:59) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.apache.druid.server.security.SecuritySanityCheckFilter.doFilter(SecuritySanityCheckFilter.java:86) ~[druid-server-0.20.0.jar:0.20.0]
   	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489) ~[jetty-servlet-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:767) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:173) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.Server.handle(Server.java:501) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) ~[jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) [jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) [jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:272) [jetty-server-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [jetty-io-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [jetty-io-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [jetty-io-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) [jetty-util-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) [jetty-util-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) [jetty-util-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) [jetty-util-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) [jetty-util-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) [jetty-util-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) [jetty-util-9.4.30.v20200611.jar:9.4.30.v20200611]
   	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_275]
   2021-01-22T15:24:16,487 ERROR [qtp1636256669-113[movingAverage_[wikipedia]_8f58f9ab-8a77-439d-bb88-6ea464ba3de8]] org.apache.druid.server.QueryResource - Exception handling request: {class=org.apache.druid.server.QueryResource, exceptionType=class java.lang.ClassCastException, exceptionMessage=org.apache.druid.java.util.common.NonnullPair cannot be cast to java.util.concurrent.ConcurrentHashMap, query={"queryType":"movingAverage","dataSource":{"type":"table","name":"wikipedia"},"intervals":{"type":"LegacySegmentSpec","intervals":["2015-09-12T00:00:00.000Z/2015-09-13T00:00:00.000Z"]},"filter":null,"granularity":"THIRTY_MINUTE","dimensions":[],"aggregations":[{"type":"longSum","name":"delta30Min","fieldName":"delta","expression":null}],"postAggregations":[],"having":null,"averagers":[{"type":"longMean","name":"trailing30MinChanges","buckets":7,"cycleSize":1,"fieldName":"delta30Min"}],"postAveragers":[],"limitSpec":{"type":"NoopLimitSpec"},"context":{"queryId":"8f58f9ab-8a77-439d-bb8
 8-6ea464ba3de8"},"descending":false}, peer=0:0:0:0:0:0:0:1} (java.lang.ClassCastException: org.apache.druid.java.util.common.NonnullPair cannot be cast to java.util.concurrent.ConcurrentHashMap)
   `
   
   Is there anything I am missing here?
   Any thoughts, pointers much appreciated.
   
   Many Thanks
   
   
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] jpelletier-nydig commented on issue #10799: Broker throws ClassCastException , while running a movingAverage query

Posted by GitBox <gi...@apache.org>.
jpelletier-nydig commented on issue #10799:
URL: https://github.com/apache/druid/issues/10799#issuecomment-771848979


   Also running into this


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] jpelletier-nydig commented on issue #10799: Broker throws ClassCastException , while running a movingAverage query

Posted by GitBox <gi...@apache.org>.
jpelletier-nydig commented on issue #10799:
URL: https://github.com/apache/druid/issues/10799#issuecomment-771848979


   Also running into this


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] suneet-s closed issue #10799: Broker throws ClassCastException , while running a movingAverage query

Posted by GitBox <gi...@apache.org>.
suneet-s closed issue #10799:
URL: https://github.com/apache/druid/issues/10799


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 commented on issue #10799: Broker throws ClassCastException , while running a movingAverage query

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #10799:
URL: https://github.com/apache/druid/issues/10799#issuecomment-842054643


   This problem can be reproduced very easily by executing query given in the doc as below
   ```
   {
     "queryType": "movingAverage",
     "dataSource": "wikipedia",
     "granularity": {
       "type": "period",
       "period": "PT30M"
     },
     "intervals": [
       "2015-09-12T00:00:00Z/2015-09-13T00:00:00Z"
     ],
     "aggregations": [
       {
         "name": "delta30Min",
         "fieldName": "delta",
         "type": "longSum"
       }
     ],
     "averagers": [
       {
         "name": "trailing30MinChanges",
         "fieldName": "delta30Min",
         "type": "longMean",
         "buckets": 7
       }
     ]
   }
   ```
   
   After execution, HTTP response shows 
   ```
   {
       "error": "Resource limit exceeded",
       "errorMessage": "url[http://localhost:8083/druid/v2/] timed out or max bytes limit reached.",
       "errorClass": "org.apache.druid.query.ResourceLimitExceededException",
       "host": "localhost:8083"
   }
   ```
   
   And in the broker.log, there're exception messages showing
   ```
   java.lang.ClassCastException: org.apache.druid.java.util.common.NonnullPair cannot be cast to java.util.concurrent.ConcurrentHashMap
           at org.apache.druid.query.context.ResponseContext$Key.lambda$static$3(ResponseContext.java:133) ~[druid-processing-0.19.0.jar:0.19.0]
           at java.util.HashMap.merge(HashMap.java:1254) ~[?:1.8.0_252]
           at org.apache.druid.query.context.ResponseContext.add(ResponseContext.java:335) ~[druid-processing-0.19.0.jar:0.19.0]
           at org.apache.druid.client.DirectDruidClient$1.handleResponse(DirectDruidClient.java:247) ~[druid-server-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.http.client.NettyHttpClient$1.messageReceived(NettyHttpClient.java:224) [druid-core-0.19.0.jar:0.19.0]
           at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.handler.timeout.ReadTimeoutHandler.messageReceived(ReadTimeoutHandler.java:184) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:108) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.10.6.Final.jar:?]
           at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.10.6.Final.jar:?]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
   2021-05-17T06:49:34,777 WARN [HttpClient-Netty-Worker-5] org.apache.druid.java.util.http.client.pool.ResourcePool - Resource at key[http://localhost:8083] was returned multiple times?
   2021-05-17T06:49:34,776 WARN [ForkJoinPool-1-worker-5] org.apache.druid.client.JsonParserIterator - Query [ce9e10ec-6da8-479e-879c-5eb4c094408c] to host [localhost:8083] interrupted
   org.apache.druid.query.ResourceLimitExceededException: url[http://localhost:8083/druid/v2/] timed out or max bytes limit reached.
           at org.apache.druid.client.JsonParserIterator.init(JsonParserIterator.java:153) [druid-server-0.19.0.jar:0.19.0]
           at org.apache.druid.client.JsonParserIterator.hasNext(JsonParserIterator.java:95) [druid-server-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.common.guava.BaseSequence.makeYielder(BaseSequence.java:89) [druid-core-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.common.guava.BaseSequence.toYielder(BaseSequence.java:69) [druid-core-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49) [druid-core-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence$ResultBatch.fromSequence(ParallelMergeCombiningSequence.java:869) [druid-core-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence$SequenceBatcher.block(ParallelMergeCombiningSequence.java:920) [druid-core-0.19.0.jar:0.19.0]
           at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3313) [?:1.8.0_252]
           at org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence$SequenceBatcher.getBatchYielder(ParallelMergeCombiningSequence.java:909) [druid-core-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence$YielderBatchedResultsCursor.initialize(ParallelMergeCombiningSequence.java:1017) [druid-core-0.19.0.jar:0.19.0]
           at org.apache.druid.java.util.common.guava.ParallelMergeCombiningSequence$PrepareMergeCombineInputsAction.compute(ParallelMergeCombiningSequence.java:721) [druid-core-0.19.0.jar:0.19.0]
           at java.util.concurrent.RecursiveAction.exec(RecursiveAction.java:189) [?:1.8.0_252]
           at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_252]
           at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_252]
           at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_252]
           at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_252]
   2021-05-17T06:49:34,778 WARN [HttpClient-Netty-Worker-5] org.apache.druid.java.util.http.client.pool.ResourcePool - Resource at key[http://localhost:8083] was returned multiple times?
   2021-05-17T06:49:34,778 WARN [qtp1096742104-119[movingAverage_[wikipedia]_ce9e10ec-6da8-479e-879c-5eb4c094408c]] org.apache.druid.server.QueryLifecycle - Exception while processing queryId [ce9e10ec-6da8-479e-879c-5eb4c094408c] (QueryInterruptedException{msg=url[http://localhost:8083/druid/v2/] timed out or max bytes limit reached., code=Resource limit exceeded, class=org.apache.druid.query.ResourceLimitExceededException, host=localhost:8083})
   ```
   
   No exception shows in historical.log. 
   
   I will continue to investigate the root cause.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 commented on issue #10799: Broker throws ClassCastException , while running a movingAverage query

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #10799:
URL: https://github.com/apache/druid/issues/10799#issuecomment-842050645






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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] FrankChen021 commented on issue #10799: Broker throws ClassCastException , while running a movingAverage query

Posted by GitBox <gi...@apache.org>.
FrankChen021 commented on issue #10799:
URL: https://github.com/apache/druid/issues/10799#issuecomment-842050645


   Thanks for reporting this. This problem appears after 0.18. I will investigate it


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org