singqwe opened a new issue #9744:
URL: https://github.com/apache/druid/issues/9744


   I am trying to test my custom aggregator using the druid binaries from 
quickstart tutorial which writes data in base64 using the 
[writeBinary](https://fasterxml.github.io/jackson-core/javadoc/2.2.0/com/fasterxml/jackson/core/JsonGenerator.html#writeBinary(byte[]))
 method of jackson library, but when I try to aggregate using query, I get the 
BufferOverflowException:
   `{"error":"Unknown 
exception","errorMessage":"java.util.concurrent.ExecutionException: 
java.lang.RuntimeException: 
java.nio.BufferOverflowException","errorClass":"java.lang.RuntimeException","host":"localhost:8083"`
   
   The logs in broker.log file are:
   
   `org.apache.druid.query.QueryInterruptedException: 
java.util.concurrent.ExecutionException: java.lang.RuntimeException: 
java.nio.BufferOverflowException
        at 
org.apache.druid.client.JsonParserIterator.init(JsonParserIterator.java:141) 
~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.client.JsonParserIterator.hasNext(JsonParserIterator.java:79) 
~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.BaseSequence.makeYielder(BaseSequence.java:87)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.BaseSequence.toYielder(BaseSequence.java:67)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.MergeSequence.lambda$toYielder$1(MergeSequence.java:64)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.MappingAccumulator.accumulate(MappingAccumulator.java:40)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.BaseSequence.accumulate(BaseSequence.java:45)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.MappedSequence.accumulate(MappedSequence.java:43)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.MergeSequence.toYielder(MergeSequence.java:61)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.LazySequence.toYielder(LazySequence.java:46)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.query.RetryQueryRunner$1.toYielder(RetryQueryRunner.java:97) 
~[druid-processing-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.common.guava.CombiningSequence.toYielder(CombiningSequence.java:79)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:88)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:84)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.SequenceWrapper.wrap(SequenceWrapper.java:55)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.WrappingSequence.toYielder(WrappingSequence.java:83)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.MappedSequence.toYielder(MappedSequence.java:49)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:88)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.WrappingSequence$2.get(WrappingSequence.java:84)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.query.CPUTimeMetricQueryRunner$1.wrap(CPUTimeMetricQueryRunner.java:74)
 ~[druid-processing-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.WrappingSequence.toYielder(WrappingSequence.java:83)
 ~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.java.util.common.guava.Yielders.each(Yielders.java:32) 
~[druid-core-0.15.1-incubating.jar:0.15.1-incubating]
        at org.apache.druid.server.QueryResource.doPost(QueryResource.java:201) 
~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_242]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_242]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_242]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
        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:1642)
 ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.apache.druid.server.security.PreResponseAuthorizationCheckFilter.doFilter(PreResponseAuthorizationCheckFilter.java:82)
 ~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.apache.druid.server.security.AllowOptionsResourceFilter.doFilter(AllowOptionsResourceFilter.java:75)
 ~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.apache.druid.server.security.AllowAllAuthenticator$1.doFilter(AllowAllAuthenticator.java:84)
 ~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.apache.druid.server.security.AuthenticationWrappingFilter.doFilter(AuthenticationWrappingFilter.java:59)
 ~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.apache.druid.server.security.SecuritySanityCheckFilter.doFilter(SecuritySanityCheckFilter.java:86)
 ~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        at 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
 ~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533) 
~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473) 
~[jetty-servlet-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144) 
~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:724) 
~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:61) 
~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:169)
 ~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132) 
~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at org.eclipse.jetty.server.Server.handle(Server.java:531) 
~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352) 
~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260) 
~[jetty-server-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)
 ~[jetty-io-9.4.10.v20180503.jar:9.4.10.v20180503]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) 
~[jetty-io-9.4.10.v20180503.jar:9.4.10.v20180503]
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) 
~[jetty-io-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
 ~[jetty-util-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
 ~[jetty-util-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
 ~[jetty-util-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:132)
 ~[jetty-util-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)
 [jetty-util-9.4.10.v20180503.jar:9.4.10.v20180503]
        at 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678) 
[jetty-util-9.4.10.v20180503.jar:9.4.10.v20180503]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
   Caused by: org.apache.druid.query.QueryInterruptedException: 
java.util.concurrent.ExecutionException: java.lang.RuntimeException: 
java.nio.BufferOverflowException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method) ~[?:1.8.0_242]
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
 ~[?:1.8.0_242]
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 ~[?:1.8.0_242]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
~[?:1.8.0_242]
        at 
com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:125)
 ~[jackson-databind-2.6.7.jar:2.6.7]
        at 
com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:227)
 ~[jackson-databind-2.6.7.jar:2.6.7]
        at 
com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator.build(PropertyBasedCreator.java:135)
 ~[jackson-databind-2.6.7.jar:2.6.7]
        at 
com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:383)
 ~[jackson-databind-2.6.7.jar:2.6.7]
        at 
com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer.deserializeFromObject(ThrowableDeserializer.java:66)
 ~[jackson-databind-2.6.7.jar:2.6.7]
        at 
com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
 ~[jackson-databind-2.6.7.jar:2.6.7]
        at 
com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3708) 
~[jackson-databind-2.6.7.jar:2.6.7]
        at 
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2005) 
~[jackson-databind-2.6.7.jar:2.6.7]
        at 
org.apache.druid.client.JsonParserIterator.init(JsonParserIterator.java:140) 
~[druid-server-0.15.1-incubating.jar:0.15.1-incubating]
        ... 88 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.

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



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

Reply via email to