Skip to content

Commit

Permalink
[ISSUE apache#7686] The bornTime is not set when using the popMessage…
Browse files Browse the repository at this point in the history
… API in cluster mode. (apache#7687)

* The bornTime is not set when using the popMessage API in cluster mode.

---------

Co-authored-by: ShuangxiDing <[email protected]>
  • Loading branch information
dingshuangxi888 and ShuangxiDing authored Dec 22, 2023
1 parent 2c898c9 commit 4bb4d78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public CompletableFuture<PopResult> popMessage(
requestHeader.setExp(subscriptionData.getSubString());
requestHeader.setOrder(fifo);
requestHeader.setAttemptId(attemptId);
requestHeader.setBornTime(System.currentTimeMillis());

future = this.serviceManager.getMessageService().popMessage(
ctx,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ public CompletableFuture<Void> endTransactionOneway(ProxyContext ctx, String bro
@Override
public CompletableFuture<PopResult> popMessage(ProxyContext ctx, AddressableMessageQueue messageQueue,
PopMessageRequestHeader requestHeader, long timeoutMillis) {
requestHeader.setBornTime(System.currentTimeMillis());
RemotingCommand request = LocalRemotingCommand.createRequestCommand(RequestCode.POP_MESSAGE, requestHeader, ctx.getLanguage());
CompletableFuture<RemotingCommand> future = new CompletableFuture<>();
SimpleChannel channel = channelManager.createInvocationChannel(ctx);
Expand Down

0 comments on commit 4bb4d78

Please sign in to comment.