使用OPartitionedDatabasePool
获取连接并发送操作类型为REQUEST_RECORD_CREATE
(31)的请求,即插入记录,有时会在客户端无法连接到服务器时失败。
当连接空闲一段时间后,第一次插入失败并显示消息"提供的令牌已过期"。然后,一些自动重新连接策略启动,客户端发送操作类型REQUEST_DB_OPEN
(3)。服务器以新令牌响应并开始向客户端写入大量数据。经过一番来回,客户得到REQUEST_RECORD_CREATE
的成功回复。一切都很好。
但是,在某些情况下,永远不会触发重新连接行为。客户端不断发送REQUEST_RECORD_CREATE
,服务器继续响应"提供的令牌已过期",直到重新连接策略达到重试限制并抛出ODatabaseException
:
com.orientechnologies.orient.core.exception.ODatabaseException: Error during saving of record with rid #-1:-1
DB name="my_db"
at com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:197)
....
这种行为出现的情况对我来说仍然有点不清楚。到目前为止,我只在Hyper-V上运行的Windows Server 2012 R2 VM上看到过这种情况。此外,它似乎只在VM运行了几天之后才发生,可能会受到一些自动Windows Update操作等。
这是从客户端触发插入请求的方式:
private final OPartitionedDatabasePool pool;
public JsonObject insert(String className, JsonObject recordData) {
try (ODatabaseDocumentTx ignored = pool.acquire()) {
ODocument document = new ODocument(className);
document.fromJSON(recordData.encode());
document.save();
return new JsonObject(document.toJSON());
}
}
下面是一个成功重新连接的日志,有些被截断并修改以便于阅读。不成功的行为完全相同,除了客户端永远不会发送REQUEST_DB_OPEN
(3),而只是发送REQUEST_RECORD_CREATE
(31)直到失败。
2017-05-17 02:00:01,571 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} null possible previous close - Closing socket...
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Connected
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing short (2 bytes): 36
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: null possible previous close - Flush
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Reading byte (1 byte)...
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Read byte: 31
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Reading int (4 bytes)...
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Read int: 3
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Reading chunk of bytes. Reading chunk length as int (4 bytes)...
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Read chunk lenght: 115
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Reading 115 bytes...
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Read 115 bytes: my_db <truncated>
2017-05-17 09:32:17,692 [OClientConnectionManager] INFO: Remote client connected from: OClientConnection [id=6, source=/127.0.0.1:50249, since=1495006337692]
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing byte (1 byte): 1
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing int (4 bytes): 3
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing bytes (4+0=4 bytes): []
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing byte (1 byte): 1
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing string (4+78=82 bytes): com.orientechnologies.orient.enterprise.channel.binary.OTokenSecurityException
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing string (4+29=33 bytes): The token provided is expired
2017-05-17 09:32:17,692 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing byte (1 byte): 0
2017-05-17 09:32:17,707 [OChannelBinaryServer] INFO: /127.0.0.1:50249 - Writing bytes (4+1508=1512 bytes): [-84, -19, 0, 5, 115 <truncated>
2017-05-17 09:32:17,707 [OChannelBinaryServer] INFO: null possible previous close - Flush
2017-05-17 09:32:17,707 [OChannelBinaryServer] INFO: null possible previous close - Flush
2017-05-17 09:32:17,818 [OChannelBinaryServer] INFO: null possible previous close - Closing socket...
2017-05-17 09:32:17,818 [OStorageRemote] INFO: Caught Network I/O errors on 127.0.0.1:2424/my_db, trying an automatic reconnection... (error: null)
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Connected
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing short (2 bytes): 36
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: null possible previous close - Flush
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading byte (1 byte)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read byte: 3
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading int (4 bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read int: -3
2017-05-17 09:32:18,319 [OClientConnectionManager] INFO: Remote client connected from: OClientConnection [id=7, source=/127.0.0.1:50250, since=1495006338319]
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading string (4+N bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read string: OrientDB Java
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading string (4+N bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read string: 2.2.17
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading short (2 bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read short: 36
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading string (4+N bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading string (4+N bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read string: ORecordSerializerBinary
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading boolean (1 byte)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read boolean: true
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading boolean (1 byte)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read boolean: true
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading boolean (1 byte)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read boolean: true
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading string (4+N bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read string: my_db
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading string (4+N bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read string: writer
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Reading string (4+N bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Read string: MVP00KNPxcWM3flpRpAGQG0O
2017-05-17 09:32:18,319 [OClientConnectionManager] INFO: $ANSI{green {db=my_db}} Remote client connected from: OClientConnection [id=7, source=/127.0.0.1:50250, since=1495006338319]
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing byte (1 byte): 0
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing int (4 bytes): -3
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing int (4 bytes): 7
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing bytes (4+115=119 bytes): [0, 0, 0, 0,....]
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 37
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+8=12 bytes): internal
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 0
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+5=9 bytes): index
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 1
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+8=12 bytes): manindex
....
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 16
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+5=9 bytes): event
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 17
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+7=11 bytes): event_1
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 18
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+7=11 bytes): event_2
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 19
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+7=11 bytes): event_3
....
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 36
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing bytes (4+0=4 bytes): null
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing string (4+6=10 bytes): 2.2.17
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} null possible previous close - Flush
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading byte (1 byte)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read byte: 31
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading int (4 bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read int: 7
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading chunk of bytes. Reading chunk length as int (4 bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read chunk lenght: 115
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading 115 bytes...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read 115 bytes: my_db blablabla
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading short (2 bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read short: -1
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading chunk of bytes. Reading chunk length as int (4 bytes)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read chunk lenght: 75592
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading 75592 bytes...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read 75592 bytes: bla bla bla
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading byte (1 byte)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read byte: 100
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading byte (1 byte)...
2017-05-17 09:32:18,319 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read byte: 0
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing byte (1 byte): 0
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing int (4 bytes): 7
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing bytes (4+0=4 bytes): []
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing short (2 bytes): 22
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing long (8 bytes): 8
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing int (4 bytes): 1
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Writing int (4 bytes): 0
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} null possible previous close - Flush
2017-05-17 09:32:18,350 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading byte (1 byte)...
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read byte: 41
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading int (4 bytes)...
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read int: 4
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading chunk of bytes. Reading chunk length as int (4 bytes)...
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read chunk lenght: 115
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Reading 115 bytes...
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50250 - Read 115 bytes: my_db <truncated>
2017-05-17 09:32:18,366 [OClientConnectionManager] INFO: $ANSI{green {db=my_db}} Remote client connected from: OClientConnection [id=8, source=/127.0.0.1:50250, since=1495006338366]
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing byte (1 byte): 1
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing int (4 bytes): 4
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing bytes (4+0=4 bytes): []
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing byte (1 byte): 1
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing string (4+78=82 bytes): com.orientechnologies.orient.enterprise.channel.binary.OTokenSecurityException
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing string (4+50=54 bytes): The token provided is expired
DB name="my_db"
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing byte (1 byte): 0
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: /127.0.0.1:50250 - Writing bytes (4+1518=1522 bytes): [-84, -19, 0, 5, 115, 114, 0, ...]
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: null possible previous close - Flush
2017-05-17 09:32:18,366 [OChannelBinaryServer] INFO: null possible previous close - Flush
2017-05-17 09:32:18,475 [OChannelBinaryServer] INFO: null possible previous close - Closing socket...
2017-05-17 09:32:18,475 [OStorageRemote] INFO: Caught Network I/O errors on 127.0.0.1:2424/my_db, trying an automatic reconnection... (error: null)
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Connected
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Writing short (2 bytes): 36
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: null possible previous close - Flush
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading byte (1 byte)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read byte: 3
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading int (4 bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read int: -4
2017-05-17 09:32:18,977 [OClientConnectionManager] INFO: Remote client connected from: OClientConnection [id=9, source=/127.0.0.1:50251, since=1495006338977]
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading string (4+N bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read string: OrientDB Java
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading string (4+N bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read string: 2.2.17
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading short (2 bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read short: 36
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading string (4+N bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading string (4+N bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read string: ORecordSerializerBinary
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading boolean (1 byte)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read boolean: true
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading boolean (1 byte)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read boolean: true
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading boolean (1 byte)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read boolean: true
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading string (4+N bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read string: my_db
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading string (4+N bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read string: writer
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Reading string (4+N bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: /127.0.0.1:50251 - Read string: MVP00KNPxcWM3flpRpAGQG0O
2017-05-17 09:32:18,977 [OClientConnectionManager] INFO: $ANSI{green {db=my_db}} Remote client connected from: OClientConnection [id=9, source=/127.0.0.1:50251, since=1495006338977]
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing byte (1 byte): 0
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing int (4 bytes): -4
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing int (4 bytes): 9
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing bytes (4+115=119 bytes): [0, 0, 0, 0,...]
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 37
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+8=12 bytes): internal
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 0
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+5=9 bytes): index
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 1
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+8=12 bytes): manindex
...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 16
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+5=9 bytes): event
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 17
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+7=11 bytes): event_1
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 18
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+7=11 bytes): event_2
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 19
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+7=11 bytes): event_3
....
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing short (2 bytes): 36
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing bytes (4+0=4 bytes): null
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing string (4+6=10 bytes): 2.2.17
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} null possible previous close - Flush
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading byte (1 byte)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Read byte: 41
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading int (4 bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Read int: 9
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading chunk of bytes. Reading chunk length as int (4 bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Read chunk lenght: 115
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading 115 bytes...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Read 115 bytes: my_db ...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading byte (1 byte)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Read byte: 97
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading chunk of bytes. Reading chunk length as int (4 bytes)...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Read chunk lenght: 151
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading 151 bytes...
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Read 151 bytes: ;com.orientechnologies.orient.core.sql.query.OSQLAsynchQuery 'SELECT FROM my_table WHERE some_property = <...> ! params 0 some_value
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing byte (1 byte): 0
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing int (4 bytes): 9
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing bytes (4+0=4 bytes): []
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Writing byte (1 byte): 0
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} null possible previous close - Flush
2017-05-17 09:32:18,977 [OChannelBinaryServer] INFO: $ANSI{green {db=my_db}} /127.0.0.1:50251 - Reading byte (1 byte)...