expect buffer is truncated

Issue #444 resolved
created an issue


I'm trying to test expected buffer (Apache Cassandra, 61 byte), but it comes truncated.

Monit rule:

if failed host port 9042 send "\0x04\0x00\0x00\0x00\0x05\0x00\0x00\0x00\0x00" expect ".*CQL_VERSION.*" within 1 cycle then alert

Response ascii dump:


Response hex dump:

char peer1_0[] = {
0x84, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 
0x34, 0x00, 0x02, 0x00, 0x0b, 0x43, 0x4f, 0x4d, 
0x50, 0x52, 0x45, 0x53, 0x53, 0x49, 0x4f, 0x4e, 
0x00, 0x02, 0x00, 0x06, 0x73, 0x6e, 0x61, 0x70, 
0x70, 0x79, 0x00, 0x03, 0x6c, 0x7a, 0x34, 0x00, 
0x0b, 0x43, 0x51, 0x4c, 0x5f, 0x56, 0x45, 0x52, 
0x53, 0x49, 0x4f, 0x4e, 0x00, 0x01, 0x00, 0x05, 
0x33, 0x2e, 0x34, 0x2e, 0x30 };

Monit mesage

GENERIC: received unexpected data [<84>\0\0\0^F\0\0\04\0^B\0^KCOMPRESSION\0^B\0^Fsnappy\0^Clz4\0^KCQL_VERS] -- No match

So ION....3.4.0 is lost somewhere.

Comments (2)

  1. Log in to comment