Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
As the following image and code shows, the code check the byteWritten of STREAM_HEADER, i.e. 0, equals to 10000, of course failed.
static boolean checkSuccessRemoteWrite(List<CompletableFuture<DataStreamReply>> replyFutures, long bytesWritten) { for (CompletableFuture<DataStreamReply> replyFuture : replyFutures) { final DataStreamReply reply = replyFuture.join(); if (!reply.isSuccess() || reply.getBytesWritten() != bytesWritten) { + System.err.println("succ:" + reply.isSuccess() + " reply written:" + reply.getBytesWritten() + + " expected:" + bytesWritten + " clientId:" + reply.getClientId() + ",type:" + reply.getType() + ",streamId" + + reply.getStreamId() + ",offset:" + reply.getStreamOffset() + ",datalength:" + reply.getDataLength()); return false; } } return true; }
Attachments
Attachments
Issue Links
- links to