Skip to content

Commit

Permalink
fix keeper ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lishanglin committed Apr 15, 2024
1 parent 90e39d3 commit 0c8ecb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.ctrip.xpipe.redis.core.protocal.protocal.BulkStringEofJudger.JudgeResult;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.util.CharsetUtil;

import java.io.IOException;

Expand Down Expand Up @@ -68,7 +69,9 @@ public RedisClientProtocol<InOutPayload> read(ByteBuf byteBuf){
case READING_CONTENT:

int readerIndex = byteBuf.readerIndex();
JudgeResult result = eofJudger.end(byteBuf.slice());
ByteBuf bf = byteBuf.slice();
getLogger().info("[lsl][read] {}", bf.toString(CharsetUtil.UTF_8));
JudgeResult result = eofJudger.end(bf);
int length = readContent(byteBuf.slice(readerIndex, result.getReadLen()));
if (length != result.getReadLen()) {
throw new IllegalStateException(String.format("expected readLen:%d, but real:%d", result.getReadLen(), length));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ private void handleFullSync(final OutputStream ous) throws IOException, Interrup
rdbStartPos = 3 + String.valueOf(rdbContent.length).length();
waitAckToSendCommands = false;
}
if(logger.isDebugEnabled()){
logger.debug("[handleFullSync]{}, {}", getSocket(), new String(rdb));
}
logger.info("[handleFullSync]{}, {}", getSocket(), new String(rdb));

if(fakeRedisServer.getAndDecreaseSendHalfRdbAndCloseConnectionCount() > 0){
ous.write(rdb, 0, rdbStartPos + rdbContent.length/2);
Expand Down

0 comments on commit 0c8ecb2

Please sign in to comment.