Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ISSUE #9852] Print full message content when CRC not found in properties#9853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
guyinyou wants to merge1 commit intoapache:develop
base:develop
Choose a base branch
Loading
fromguyinyou:dev_aaafasdfasdfnasl
Open
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletionstore/src/main/java/org/apache/rocketmq/store/CommitLog.java
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -618,8 +618,18 @@ public DispatchRequest checkMessageAndReturnSize(java.nio.ByteBuffer byteBuffer,
return new DispatchRequest(-1, false/* success */);
}
} else {
// Read full message for logging when error occurs
ByteBuffer fullMessageBuffer = byteBuffer.duplicate();
int messageStartPos = fullMessageBuffer.position() - totalSize;
fullMessageBuffer.position(messageStartPos);
fullMessageBuffer.limit(messageStartPos + totalSize);
byte[] fullMessageBytes = new byte[totalSize];
fullMessageBuffer.get(fullMessageBytes, 0, totalSize);

// Print full message and especially properties
log.warn(
"CommitLog#checkAndDispatchMessage: failed to check message CRC, not found CRC in properties");
"CommitLog#checkAndDispatchMessage: failed to check message CRC, not found CRC in properties. topic={}, properties={}, propertiesLength={}, fullMessageHex={}",
topic, propertiesMap != null ? propertiesMap.toString() : "null", propertiesLength, UtilAll.bytes2string(fullMessageBytes));
return new DispatchRequest(-1, false/* success */);
}
}
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp