Skip to content

Commit

Permalink
try bug
Browse files Browse the repository at this point in the history
Signed-off-by: OneSizeFitQuorum <[email protected]>
  • Loading branch information
OneSizeFitsQuorum committed Jun 27, 2024
1 parent b4bb3dc commit 4e82f3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,21 @@ private void transferInEventWithoutCheck(final TabletInsertionEvent tabletInsert

final InsertNode insertNode =
pipeInsertNodeTabletInsertionEvent.getInsertNodeViaCacheIfPossible();
byte[] byte1 = pipeInsertNodeTabletInsertionEvent.getByteBuffer().array();
StringBuilder sb = new StringBuilder();
org.apache.thrift.TBaseHelper.toString(ByteBuffer.wrap(byte1), sb);
if (insertNode == null) {
LOGGER.error("unpected situation, byte1 {}, insertNode {}", sb, insertNode);
}
final TPipeTransferReq pipeTransferReq =
compressIfNeeded(
Objects.isNull(insertNode)
? PipeTransferTabletBinaryReq.toTPipeTransferReq(
pipeInsertNodeTabletInsertionEvent.getByteBuffer())
: PipeTransferTabletInsertNodeReq.toTPipeTransferReq(insertNode));
if (insertNode == null) {
LOGGER.error("unexpected situation, pipeTransferReq {}", pipeTransferReq);
ByteBuffer buffer = pipeTransferReq.body;
LOGGER.info(
"buffer capacity is: {}, limit is: {}, position is: {}",
buffer.capacity(),
buffer.limit(),
buffer.position());
}
final PipeTransferTabletInsertNodeEventHandler pipeTransferInsertNodeReqHandler =
new PipeTransferTabletInsertNodeEventHandler(
pipeInsertNodeTabletInsertionEvent, pipeTransferReq, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static WALEntry deserialize(DataInputStream stream) throws IOException {
* InsertTabletNode.
*/
public static PlanNode deserializeForConsensus(ByteBuffer buffer) {
logger.debug(
logger.info(
"buffer capacity is: {}, limit is: {}, position is: {}",
buffer.capacity(),
buffer.limit(),
Expand Down

0 comments on commit 4e82f3c

Please sign in to comment.