Repository navigation
Conversation
|
The ci test was failed, you should check in your local first |
|
@BurningCN The additional properties are useful for debugging. |
| int queueId = Integer.parseInt(queueIdStr); | ||
| msgInner.setQueueId(queueId); | ||
|
|
||
| MessageAccessor.clearProperty(msgExt, MessageConst.PROPERTY_DELAY_TIME_LEVEL); |
There was a problem hiding this comment.
As a good programming practice, I don't think the contents of the method argument msgExt should change.
Here's my advice:
MessageAccessor.setProperties(msgInner, msgExt.getProperties());
MessageAccessor.clearProperty(msgInner, MessageConst.PROPERTY_REAL_TOPIC);
.......
msgInner.setPropertiesString(MessageDecoder.messageProperties2String(msgInner.getProperties()));
There was a problem hiding this comment.
As a good programming practice, I don't think the contents of the method argument msgExt should change. Here's my advice: MessageAccessor.setProperties(msgInner, msgExt.getProperties()); MessageAccessor.clearProperty(msgInner, MessageConst.PROPERTY_REAL_TOPIC); ....... msgInner.setPropertiesString(MessageDecoder.messageProperties2String(msgInner.getProperties()));
thanks
OK |
Make sure set the target branch to
developWhat is the purpose of the change
issue #4164
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice,
it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.[ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyleto make sure basic checks pass. Runmvn clean install -DskipITsto make sure unit-test pass. Runmvn clean test-compile failsafe:integration-testto make sure integration-test pass.