-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature:Transfer global timeout and branch transaction begin time #7164
base: 2.x
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,8 @@ public void begin(int timeout, String name) throws TransactionException { | |
xid = transactionManager.begin(null, null, name, timeout); | ||
status = GlobalStatus.Begin; | ||
RootContext.bind(xid); | ||
RootContext.setTimeout(timeout); | ||
RootContext.setBranchBeignTime(createTime); | ||
Comment on lines
+116
to
+117
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. integration模块中需要传递两个值 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I set this value here I think it is ambiguous, the time here should be the start time of the global transaction and not the begin time of the branch transaction. |
||
if (LOGGER.isInfoEnabled()) { | ||
LOGGER.info("Begin new global transaction [{}]", xid); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see this branchBeginTime value being passed from the downstream service, and if it's not passed, it's no different from the previous function. Or what you're trying to say is timeout is the timeout of a branch transaction not the timeout of a global transaction?