Details
-
New Feature
-
Resolution: Unresolved
-
Major
-
3.4.9
-
None
-
2
Description
From talking to David Nault the Java clients get useful packet information in their logs:
For KV, it logs a hex dump of every incoming/outgoing Couchbase packet, along with a little dissection of the header that looks like:
------ Field ------+ Offset +--- Value ---
|
Magic | 0 | 0x80 (REQUEST)
|
Opcode | 1 | 0x1F (HELLO)
|
Key Length | 2-3 | 0x007E (126)
|
Extras Length | 4 | 0x00 (0)
|
Datatype | 5 | 0x00 ([])
|
VBucket | 6-7 | 0x0000 (0)
|
Total Body Length | 8-11 | 0x000000A4 (164)
|
Opaque | 12-15 | 0x00000002
|
CAS | 16-23 | 0x0000000000000000
|
----- Payload -----+--------+-------------
|
>> Key: {"a":"java/3.4.9-SNAPSHOT (Mac OS X 13.5 aarch64; OpenJDK 64-Bit Server VM 17.0.8+7)","i":"814E422700000001/000000008F5F7553"}
|
-------------------+--------+-------------
|
This ticket is to add the feature to .NET SDK as its useful for debugging.