Details
-
Bug
-
Resolution: Fixed
-
Major
-
2.5.1
-
None
-
None
-
1
Description
Suggested release note:
Fix compatibility with couchbase2 by upgrading internal GRPC dependency. All couchbase2 users should upgrade to this release.
Uisng 3.5.2-SNAPSHOT
Test:
Cluster cluster = Cluster.connect("couchbase2://localhost", ClusterOptions.clusterOptions("Administrator", "password")
|
.environment(env -> {
|
env.securityConfig(sec -> sec.enableCertificateVerification(false));
|
}));
|
Collection collection = cluster.bucket("default").defaultCollection();
|
JsonObject json = JsonObject.create();
|
collection.upsert("test", json);
|
Result
Exception in thread "main" com.couchbase.client.core.error.InternalServerFailureException: Internal Couchbase Server error {"bucket":"default","collection":"_default","completed":false,"details":0,"documentId":"test","readonly":false,"requestName":"upsert","retried":0,"scope":"_default","server":"","service":{"type":"kv"},"timeoutMs":2500,"timings":{"lastDispatchMicros":1220263,"encodingMicros":6806,"totalDispatchMicros":1220263}}
|
at com.couchbase.client.core.protostellar.CoreProtostellarErrorHandlingUtil.convertStatus(CoreProtostellarErrorHandlingUtil.java:233)
|
at com.couchbase.client.core.protostellar.CoreProtostellarErrorHandlingUtil.convertException(CoreProtostellarErrorHandlingUtil.java:107)
|
at com.couchbase.client.core.protostellar.CoreProtostellarAccessors.lambda$blocking$0(CoreProtostellarAccessors.java:62)
|
at com.couchbase.client.core.protostellar.CoreProtostellarAccessors.blocking(CoreProtostellarAccessors.java:94)
|
at com.couchbase.client.core.protostellar.CoreProtostellarAccessors.blocking(CoreProtostellarAccessors.java:62)
|
at com.couchbase.client.core.protostellar.kv.ProtostellarCoreKvOps.upsertBlocking(ProtostellarCoreKvOps.java:157)
|
at com.couchbase.client.java.Collection.upsert(Collection.java:556)
|
at com.couchbase.client.java.Collection.upsert(Collection.java:537)
|
at org.example.Main.couchbase2(Main.java:60)
|
at org.example.Main.main(Main.java:48)
|
Caused by: com.couchbase.client.core.deps.io.grpc.StatusRuntimeException: UNKNOWN
|
at com.couchbase.client.core.deps.io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:268)
|
at com.couchbase.client.core.deps.io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:249)
|
at com.couchbase.client.core.deps.io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:167)
|
at com.couchbase.client.protostellar.kv.v1.KvServiceGrpc$KvServiceBlockingStub.upsert(KvServiceGrpc.java:945)
|
at com.couchbase.client.core.protostellar.kv.ProtostellarCoreKvOps.lambda$upsertBlocking$16(ProtostellarCoreKvOps.java:159)
|
at com.couchbase.client.core.protostellar.CoreProtostellarAccessors.blocking(CoreProtostellarAccessors.java:85)
|
... 6 more
|
Caused by: java.lang.UnsupportedOperationException
|
at com.couchbase.client.core.deps.io.grpc.netty.AbstractHttp2Headers.isEmpty(AbstractHttp2Headers.java:40)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java:419)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java:352)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onHeadersRead(Http2InboundFrameLogger.java:56)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.DefaultHttp2FrameReader$2.processFragment(DefaultHttp2FrameReader.java:476)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readHeadersFrame(DefaultHttp2FrameReader.java:484)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java:253)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java:159)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java:41)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java:188)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:393)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:453)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
|
at com.couchbase.client.core.deps.io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1475)
|
at com.couchbase.client.core.deps.io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1338)
|
at com.couchbase.client.core.deps.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1387)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
|
at com.couchbase.client.core.deps.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
|
at com.couchbase.client.core.deps.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
|
at com.couchbase.client.core.deps.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
|
at com.couchbase.client.core.deps.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
|
at com.couchbase.client.core.deps.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
|
at com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
|
at com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
|
at com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
|
at com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
|
at com.couchbase.client.core.deps.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
|
at com.couchbase.client.core.deps.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
|
at com.couchbase.client.core.deps.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
|
at java.base/java.lang.Thread.run(Thread.java:833)
|