This is a bug in gRPC. That exception is checking our internal state and
somehow it's gotten confused.

I filed https://github.com/grpc/grpc-java/issues/3007 for tracking

On Mon, May 15, 2017 at 3:43 PM, Carl Mastrangelo <[email protected]>
wrote:

> +Eric
>
>
> On Saturday, May 13, 2017 at 4:09:11 PM UTC-7, [email protected] wrote:
>>
>> Hey,
>>
>> I'm getting this cryptic error message and would like some help figuring
>> out what's causing it.
>>
>> We have a GRPC service written in Clojure/Java and after running the
>> service for a while our logs will be filled with these errors. Can someone
>> explain what this error message means?
>>
>> grpc version: 1.3.0
>>
>> 22:42:37.609 |- WARN  i.n.u.c.DefaultPromise - An exception was thrown by
>> io.grpc.netty.NettyClientStream$Sink$2.operationComplete()
>> java.lang.IllegalStateException: onStreamAllocated was not called, but
>> it seems the stream is active
>>         at com.google.common.base.Preconditions.checkState(Precondition
>> s.java:174)
>>         at io.grpc.internal.AbstractStream2$TransportState.onSentBytes(
>> AbstractStream2.java:287)
>>         at io.grpc.netty.NettyClientStream$Sink$2.operationComplete(Net
>> tyClientStream.java:172)
>>         at io.grpc.netty.NettyClientStream$Sink$2.operationComplete(Net
>> tyClientStream.java:166)
>>         at io.netty.util.concurrent.DefaultPromise.notifyListener0(Defa
>> ultPromise.java:507)
>>         at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(D
>> efaultPromise.java:481)
>>         at io.netty.util.concurrent.DefaultPromise.notifyListeners(Defa
>> ultPromise.java:420)
>>         at io.netty.util.concurrent.DefaultPromise.setSuccess(DefaultPr
>> omise.java:95)
>>         at io.netty.channel.DefaultChannelPromise.setSuccess(DefaultCha
>> nnelPromise.java:76)
>>         at io.netty.channel.DefaultChannelPromise.setSuccess(DefaultCha
>> nnelPromise.java:71)
>>         at io.netty.handler.codec.http2.StreamBufferingEncoder$Frame.re
>> lease(StreamBufferingEncoder.java:309)
>>         at io.netty.handler.codec.http2.StreamBufferingEncoder$DataFram
>> e.release(StreamBufferingEncoder.java:357)
>>         at io.netty.handler.codec.http2.StreamBufferingEncoder$PendingS
>> tream.close(StreamBufferingEncoder.java:292)
>>         at io.netty.handler.codec.http2.StreamBufferingEncoder.writeRst
>> Stream(StreamBufferingEncoder.java:184)
>>         at io.grpc.netty.NettyClientHandler.cancelStream(NettyClientHan
>> dler.java:470)
>>         at io.grpc.netty.NettyClientHandler.write(NettyClientHandler.
>> java:244)
>>         at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(
>> AbstractChannelHandlerContext.java:739)
>>         at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(A
>> bstractChannelHandlerContext.java:731)
>>         at io.netty.channel.AbstractChannelHandlerContext.write(Abstrac
>> tChannelHandlerContext.java:817)
>>         at io.netty.channel.AbstractChannelHandlerContext.write(Abstrac
>> tChannelHandlerContext.java:724)
>>         at io.netty.channel.DefaultChannelPipeline.write(DefaultChannel
>> Pipeline.java:1022)
>>         at io.netty.channel.AbstractChannel.write(AbstractChannel.java:
>> 291)
>>         at io.grpc.netty.WriteQueue.flush(WriteQueue.java:127)
>>         at io.grpc.netty.WriteQueue.access$000(WriteQueue.java:47)
>>         at io.grpc.netty.WriteQueue$1.run(WriteQueue.java:59)
>>         at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(A
>> bstractEventExecutor.java:163)
>>         at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTas
>> ks(SingleThreadEventExecutor.java:403)
>>         at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:445)
>>         at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(
>> SingleThreadEventExecutor.java:858)
>>         at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnabl
>> eDecorator.run(DefaultThreadFactory.java:144)
>>         at java.lang.Thread.run(Thread.java:745)
>>
>> Garrett
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oPBdRDLK%3DpoUmOXVRDPxxGJPuxgr6u9_7zoWVjE24Xc5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to