Skip to content
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

bugfix: fix rollback transaction metrics are inaccurate #4662

Merged
merged 16 commits into from Jun 14, 2022
Merged
Expand Up @@ -179,6 +179,11 @@ public static void endRollbacked(GlobalSession globalSession, boolean retryGloba
MetricsPublisher.postSessionDoneEvent(globalSession, IdConstants.STATUS_VALUE_AFTER_ROLLBACKED_KEY, true,
beginTime, retryBranch);
} else {
if (isTimeoutGlobalStatus(globalSession.getStatus())) {
globalSession.setStatus(GlobalStatus.TimeoutRollbacked);
} else {
globalSession.setStatus(GlobalStatus.Rollbacked);
}
slievrly marked this conversation as resolved.
Show resolved Hide resolved
MetricsPublisher.postSessionDoneEvent(globalSession, false, false);
}
}
Expand Down