Skip to content

Commit

Permalink
IGNITE-19158 Improved message about received partition file during sn…
Browse files Browse the repository at this point in the history
…apshot restore (#10762)
  • Loading branch information
J-Bakuli authored Jul 12, 2023
1 parent fd2a1f6 commit a107d20
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import java.net.SocketTimeoutException;
import java.nio.channels.Channel;
import java.nio.channels.FileChannel;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.SocketChannel;
import java.nio.channels.WritableByteChannel;
import java.time.Instant;
Expand Down Expand Up @@ -2917,7 +2916,7 @@ private void receiveFromChannel(
ReceiverContext rcvCtx,
ObjectInputStream in,
ObjectOutputStream out,
ReadableByteChannel ch
SocketChannel ch
) throws NodeStoppingException, InterruptedException {
try {
while (true) {
Expand Down Expand Up @@ -2964,9 +2963,11 @@ private void receiveFromChannel(
rcvCtx.rcv.close();

U.log(log, "File has been received " +
"[name=" + rcvCtx.rcv.state().name() + ", transferred=" + rcvCtx.rcv.transferred() +
"[name=" + rcvCtx.rcv.state().name() +
", transferred=" + rcvCtx.rcv.transferred() +
", time=" + (double)((U.currentTimeMillis() - startTime) / 1000) + " sec" +
", rmtId=" + rcvCtx.rmtNodeId + ']');
", rmtId=" + rcvCtx.rmtNodeId +
", rmtAddr=" + ch.getRemoteAddress() + ']');

rcvCtx.rcv = null;
}
Expand Down

0 comments on commit a107d20

Please sign in to comment.