Description
Hi Couchbase team,
AS part of migration lcb 3.x in our Amadeus couchbase client, we encountered an issue after doing a multiget with too long key length (> 250 char). Indeed we observed LCB_ERR_SOCKET_SHUTDOWN on the next callbacks of multiget.
Please find the logs below
2020/11/23 07:28:10.052767 test MDW WARN server <mcserver.cc#383 TID#0> <1.1.1.1:11210> (CTX=0x528a3b0,memcached,SRV=0x5290430,IX=2) Received server error EINVAL (0x4) on packet: OP=0x0, RC=0x4, SEQ=0 |
2020/11/23 07:28:10.052808 test MDW WARN [12/kKVClientError_InvalidUserInput] TST <ErrorManager.cpp#370 TID#0> Error: LCB_ERR_KVENGINE_INVALID_PACKET (1031): A badly formatted packet was sent to the server. Please report this in a bug ; Failed to perform, as part of MultiGet query, the operation for key [FtUU5xndZN55pc.YLlv7EWU3jXB3Frcnciwh16ZQ5n1NNKkHyV24F.BYOvKn.FDIzDxhrNTm8vPIqkIrbi.ptf3JWoSOjA5HxGt1LjWQxEPyFtLfgOWJS2D4uH7V3QdOdzQqKowumj89mbgB0M53_NhhVrP0T9g5HtgYlmmISOYouZDVN9cSHyLhD8aVG8BPF9tMjN2bSInCeDTU73u5HNMQY.UbQOAzQLsPGmiMjnQ059nI.vimY9lQyVH], on master server [1.1.1.1:11210], global elapsed time: [8ms] |
2020/11/23 07:28:10.052826 test MDW WARN server <mcserver.cc#1054 TID#0> <1.1.1.1:11210> (CTX=0x528a3b0,memcached,SRV=0x5290430,IX=2) Got socket error LCB_ERR_SOCKET_SHUTDOWN (1025) |
2020/11/23 07:28:10.052837 test MDW WARN server <mcserver.cc#780 TID#0> <1.1.1.1:11210> (CTX=0x528a3b0,memcached,SRV=0x5290430,IX=2) Failing command (pkt=0x527c740, opaque=1, opcode=0x0) with error LCB_ERR_SOCKET_SHUTDOWN (1025) |
2020/11/23 07:28:10.052898 test MDW WARN [10/kKVClientError_ServerEnvError] TST <ErrorManager.cpp#370 TID#0> Error: LCB_ERR_SOCKET_SHUTDOWN (1025): The remote host closed the connection ; Failed to perform, as part of MultiGet query, the operation for key [KOMultipleKeysInvalidAndValid1], on master server [1.1.1.1:11210], global elapsed time: [9ms] |
2020/11/23 07:28:10.052904 test MDW WARN server <mcserver.cc#780 TID#0> <1.1.1.1:11210> (CTX=0x528a3b0,memcached,SRV=0x5290430,IX=2) Failing command (pkt=0x527c7b0, opaque=2, opcode=0x0) with error LCB_ERR_SOCKET_SHUTDOWN (1025) |
2020/11/23 07:28:10.052938 test MDW DBG TST <MultigetOperations.cpp#293 TID#0> Received response (MultiGet) for key "KOMultipleKeysInvalidAndValid2" ; lcb error: LCB_ERR_SOCKET_SHUTDOWN (1025): The remote host closed the connection, global elapsed time: [9ms] |
2020/11/23 07:28:10.052952 test MDW WARN [10/kKVClientError_ServerEnvError] TST <ErrorManager.cpp#370 TID#0> Error: LCB_ERR_SOCKET_SHUTDOWN (1025): The remote host closed the connection ; Failed to perform, as part of MultiGet query, the operation for key [KOMultipleKeysInvalidAndValid2], on master server [1.1.1.1:11210], global elapsed time: [9ms] |
reproducer, attached in gerrit, done towards real cluster.
Attachments
For Gerrit Dashboard: CCBC-1340 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
141040,6 | CCBC-1340: multiget with toolongkey induces lcb Network error for callbacks | master | libcouchbase | Status: MERGED | +2 | +1 |