All query requests errors due to NullPointerException

I am using druid 0.11.0. A NullPointerException happens and all subsequent query requests go with the same exception.

Here is the event from historical log:

Event[{

“feed”: “alerts”,

“timestamp”: “2018-06-08T09:12:44.647+08:00”,

“service”: “druid/historical”,

“host”: “druid3.hz.163.org:18083”,

“version”: “0.11.0”,

“severity”: “component-failure”,

“description”: “Exception handling request”,

“data”: {

“class”: “io.druid.server.QueryResource”,

“exceptionType”: “java.lang.NullPointerException”,

“exceptionMessage”: null,

“exceptionStackTrace”: "java.lang.NullPointerException

at io.druid.query.PrioritizedListenableFutureTask$2.compare(PrioritizedExecutorService.java:217)

at io.druid.query.PrioritizedListenableFutureTask$2.compare(PrioritizedExecutorService.java:211)

at com.google.common.collect.CompoundOrdering.compare(CompoundOrdering.java:43)

at io.druid.query.PrioritizedListenableFutureTask.compareTo(PrioritizedExecutorService.java:324)

at io.druid.query.PrioritizedListenableFutureTask.compareTo(PrioritizedExecutorService.java:204)

at java.util.concurrent.PriorityBlockingQueue.siftUpComparable(PriorityBlockingQueue.java:361)

at java.util.concurrent.PriorityBlockingQueue.offer(PriorityBlockingQueue.java:489)

at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1361)

at com.google.common.util.concurrent.MoreExecutors$ListeningDecorator.execute(MoreExecutors.java:484)

at io.druid.query.PrioritizedExecutorService.execute(PrioritizedExecutorService.java:195)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at io.druid.query.PrioritizedExecutorService.submit(PrioritizedExecutorService.java:159)

at io.druid.query.MetricsEmittingExecutorService.submit(MetricsEmittingExecutorService.java:55)

at io.druid.query.ChainedExecutionQueryRunner$1$1.apply(ChainedExecutionQueryRunner.java:118)

at io.druid.query.ChainedExecutionQueryRunner$1$1.apply(ChainedExecutionQueryRunner.java:110)

at com.google.common.collect.Iterators$8.transform(Iterators.java:794)

at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)

at com.google.common.collect.Iterators.addAll(Iterators.java:357)

at com.google.common.collect.Lists.newArrayList(Lists.java:147)

at com.google.common.collect.Lists.newArrayList(Lists.java:129)

at io.druid.query.ChainedExecutionQueryRunner$1.make(ChainedExecutionQueryRunner.java:106)

at io.druid.java.util.common.guava.BaseSequence.toYielder(BaseSequence.java:65)

at io.druid.common.guava.CombiningSequence.toYielder(CombiningSequence.java:80)

at io.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49)

at io.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:87)

at io.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:83)

at io.druid.query.CPUTimeMetricQueryRunner$1.wrap(CPUTimeMetricQueryRunner.java:74)

at io.druid.java.util.common.guava.WrappingSequence.toYielder(WrappingSequence.java:82)

at io.druid.java.util.common.guava.Yielders.each(Yielders.java:32)

at io.druid.server.QueryResource.doPost(QueryResource.java:193)

at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)

at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)

at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)

at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)

at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)

at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)

at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)

at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286)

at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276)

at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181)

at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)

at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)

at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)

at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)

at io.druid.server.security.PreResponseAuthorizationCheckFilter.doFilter(PreResponseAuthorizationCheckFilter.java:84)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)

at io.druid.server.security.AllowAllAuthenticator$1.doFilter(AllowAllAuthenticator.java:85)

at io.druid.server.security.AuthenticationWrappingFilter.doFilter(AuthenticationWrappingFilter.java:60)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)

at io.druid.server.security.SecuritySanityCheckFilter.doFilter(SecuritySanityCheckFilter.java:86)

at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:224)

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)

at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:493)

at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)

at org.eclipse.jetty.server.Server.handle(Server.java:534)

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)

at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)

at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)

at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)

at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)

at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)

at java.lang.Thread.run(Thread.java:745)",

“exception”: “java.lang.NullPointerException”,

“query”: “TopNQuery{dataSource=‘inad-online’, dimensionSpec=DefaultDimensionSpec{dimension=‘sponsor’, outputName=‘sponsor’, outputType=‘STRING’}, topNMetricSpec=NumericTopNMetricSpec{metric=‘exposureSum’}, threshold=1000, querySegmentSpec=MultipleSpecificSegmentSpec{descriptors=[SegmentDescriptor{interval=2018-04-30T21:00:00.000Z/2018-04-30T22:00:00.000Z, version=‘2018-04-30T20:52:35.348Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-01T04:00:00.000Z/2018-05-01T05:00:00.000Z, version=‘2018-05-01T03:50:34.880Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-01T11:00:00.000Z/2018-05-01T12:00:00.000Z, version=‘2018-05-01T10:50:13.597Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-02T00:00:00.000Z/2018-05-02T01:00:00.000Z, version=‘2018-05-01T23:50:58.241Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-02T13:00:00.000Z/2018-05-02T14:00:00.000Z, version=‘2018-05-02T12:51:40.069Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-02T16:00:00.000Z/2018-05-02T17:00:00.000Z, version=‘2018-05-04T02:12:31.955Z’, partitionNumber=1}, SegmentDescriptor{interval=2018-05-03T04:00:00.000Z/2018-05-03T05:00:00.000Z, version=‘2018-05-03T03:51:36.339Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-04T08:00:00.000Z/2018-05-04T09:00:00.000Z, version=‘2018-05-04T07:54:45.360Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-04T22:00:00.000Z/2018-05-04T23:00:00.000Z, version=‘2018-05-04T21:58:26.090Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-05T20:00:00.000Z/2018-05-05T21:00:00.000Z, version=‘2018-05-05T19:50:43.658Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-06T22:00:00.000Z/2018-05-06T23:00:00.000Z, version=‘2018-05-06T21:53:14.521Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-07T21:00:00.000Z/2018-05-07T22:00:00.000Z, version=‘2018-05-07T20:51:44.581Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-09T00:00:00.000Z/2018-05-09T01:00:00.000Z, version=‘2018-05-08T23:50:58.517Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-09T14:00:00.000Z/2018-05-09T15:00:00.000Z, version=‘2018-05-09T13:50:20.755Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-10T03:00:00.000Z/2018-05-10T04:00:00.000Z, version=‘2018-05-10T02:50:52.808Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-10T17:00:00.000Z/2018-05-10T18:00:00.000Z, version=‘2018-05-10T16:52:55.319Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-11T16:00:00.000Z/2018-05-11T17:00:00.000Z, version=‘2018-05-11T15:50:30.608Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-12T11:00:00.000Z/2018-05-12T12:00:00.000Z, version=‘2018-05-12T10:50:11.961Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-13T01:00:00.000Z/2018-05-13T02:00:00.000Z, version=‘2018-05-13T00:50:20.312Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-13T16:00:00.000Z/2018-05-13T17:00:00.000Z, version=‘2018-05-13T15:55:08.529Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-13T21:00:00.000Z/2018-05-13T22:00:00.000Z, version=‘2018-05-13T20:50:40.291Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-14T12:00:00.000Z/2018-05-14T13:00:00.000Z, version=‘2018-05-14T11:50:32.262Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-14T14:00:00.000Z/2018-05-14T15:00:00.000Z, version=‘2018-05-14T13:50:14.199Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-14T20:00:00.000Z/2018-05-14T21:00:00.000Z, version=‘2018-05-14T19:51:11.293Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-15T01:00:00.000Z/2018-05-15T02:00:00.000Z, version=‘2018-05-15T00:50:35.151Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-15T08:00:00.000Z/2018-05-15T09:00:00.000Z, version=‘2018-05-15T07:50:19.794Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-15T23:00:00.000Z/2018-05-16T00:00:00.000Z, version=‘2018-05-15T22:50:50.059Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-16T15:00:00.000Z/2018-05-16T16:00:00.000Z, version=‘2018-05-16T14:50:20.478Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-16T20:00:00.000Z/2018-05-16T21:00:00.000Z, version=‘2018-05-16T19:51:13.589Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-18T02:00:00.000Z/2018-05-18T03:00:00.000Z, version=‘2018-05-18T01:50:26.491Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-18T08:00:00.000Z/2018-05-18T09:00:00.000Z, version=‘2018-05-18T07:50:59.678Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-19T01:00:00.000Z/2018-05-19T02:00:00.000Z, version=‘2018-05-19T00:50:14.213Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-19T06:00:00.000Z/2018-05-19T07:00:00.000Z, version=‘2018-05-19T05:50:24.747Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-19T12:00:00.000Z/2018-05-19T13:00:00.000Z, version=‘2018-05-19T11:50:39.482Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-20T07:00:00.000Z/2018-05-20T08:00:00.000Z, version=‘2018-05-20T06:50:16.787Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-22T17:00:00.000Z/2018-05-22T18:00:00.000Z, version=‘2018-05-22T16:50:57.734Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-22T22:00:00.000Z/2018-05-22T23:00:00.000Z, version=‘2018-05-22T21:50:44.472Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-23T06:00:00.000Z/2018-05-23T07:00:00.000Z, version=‘2018-05-23T05:50:14.237Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-24T03:00:00.000Z/2018-05-24T04:00:00.000Z, version=‘2018-05-24T02:50:51.186Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-25T03:00:00.000Z/2018-05-25T04:00:00.000Z, version=‘2018-05-25T02:50:14.819Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-25T13:00:00.000Z/2018-05-25T14:00:00.000Z, version=‘2018-05-25T12:50:42.235Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-25T22:00:00.000Z/2018-05-25T23:00:00.000Z, version=‘2018-05-25T21:53:13.824Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-26T19:00:00.000Z/2018-05-26T20:00:00.000Z, version=‘2018-05-26T18:50:38.290Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-26T22:00:00.000Z/2018-05-26T23:00:00.000Z, version=‘2018-05-26T21:51:01.313Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-27T09:00:00.000Z/2018-05-27T10:00:00.000Z, version=‘2018-05-27T08:50:12.932Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-28T00:00:00.000Z/2018-05-28T01:00:00.000Z, version=‘2018-05-27T23:50:44.835Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-28T04:00:00.000Z/2018-05-28T05:00:00.000Z, version=‘2018-05-28T03:50:16.231Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-28T11:00:00.000Z/2018-05-28T12:00:00.000Z, version=‘2018-05-28T10:50:41.099Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-30T00:00:00.000Z/2018-05-30T01:00:00.000Z, version=‘2018-05-29T23:50:20.279Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-30T22:00:00.000Z/2018-05-30T23:00:00.000Z, version=‘2018-05-30T21:51:24.627Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-31T11:00:00.000Z/2018-05-31T12:00:00.000Z, version=‘2018-05-31T10:50:27.731Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-05-31T18:00:00.000Z/2018-05-31T19:00:00.000Z, version=‘2018-05-31T17:50:49.758Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-01T09:00:00.000Z/2018-06-01T10:00:00.000Z, version=‘2018-06-01T08:50:35.516Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-01T16:00:00.000Z/2018-06-01T17:00:00.000Z, version=‘2018-06-01T15:50:48.823Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-01T23:00:00.000Z/2018-06-02T00:00:00.000Z, version=‘2018-06-01T22:50:59.332Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-02T14:00:00.000Z/2018-06-02T15:00:00.000Z, version=‘2018-06-02T13:50:22.071Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-02T22:00:00.000Z/2018-06-02T23:00:00.000Z, version=‘2018-06-02T21:50:18.220Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-03T02:00:00.000Z/2018-06-03T03:00:00.000Z, version=‘2018-06-03T01:50:37.920Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-03T23:00:00.000Z/2018-06-04T00:00:00.000Z, version=‘2018-06-03T22:50:14.691Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-04T11:00:00.000Z/2018-06-04T12:00:00.000Z, version=‘2018-06-04T10:50:26.075Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-04T12:00:00.000Z/2018-06-04T13:00:00.000Z, version=‘2018-06-04T11:50:26.555Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-04T15:00:00.000Z/2018-06-04T16:00:00.000Z, version=‘2018-06-04T14:50:20.162Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-05T14:00:00.000Z/2018-06-05T15:00:00.000Z, version=‘2018-06-05T13:50:17.100Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-06T17:00:00.000Z/2018-06-06T18:00:00.000Z, version=‘2018-06-06T16:50:24.245Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-06T23:00:00.000Z/2018-06-07T00:00:00.000Z, version=‘2018-06-06T22:51:01.870Z’, partitionNumber=0}, SegmentDescriptor{interval=2018-06-07T06:00:00.000Z/2018-06-07T07:00:00.000Z, version=‘2018-06-07T05:51:04.804Z’, partitionNumber=0}]}, virtualColumns=, dimFilter=(sponsor = 210004306 || sponsor = 210004206 || sponsor = 210004311 || sponsor = 210003327 || sponsor = 210003705 || sponsor = 210003424 || sponsor = 210003303 || sponsor = 210003403 || sponsor = 210003417 || sponsor = 210003208 || sponsor = 210003302 || sponsor = 210003304 || sponsor = 210003105 || sponsor = 210002903 || sponsor = 210002620 || sponsor = 210002613 || sponsor = 210002505 || sponsor = 210002102 || sponsor = 210002105 || sponsor = 210002205), granularity=‘AllGranularity’, aggregatorSpecs=[LongSumAggregatorFactory{fieldName=‘exposureSum’, expression=‘null’, name=‘exposureSum’}, LongSumAggregatorFactory{fieldName=‘clickSum’, expression=‘null’, name=‘clickSum’}], postAggregatorSpecs=}”,

“peer”: “10.130.46.46”

}

}]

I have no idea about the NPE, anyone can help?