Skip to content

Commit

Permalink
Merge pull request #41800 from rdulmina/transaction-issue
Browse files Browse the repository at this point in the history
Remove the strandId when doing `generateCombinedTransactionId` in `TransactionResourceManager`
  • Loading branch information
gimantha authored Jan 2, 2024
2 parents 43483c5 + 8fa2ffa commit d9700aa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,11 @@ private void removeContextsFromRegistry(String transactionCombinedId, String gTr
}

private String generateCombinedTransactionId(String transactionId, String transactionBlockId) {
String compoundId = transactionId + ":" + transactionBlockId;
if (transactionBlockId.contains("_")) {
return compoundId;
// remove the strand id from the transaction block id
return transactionBlockId.split("_")[0];
}
return compoundId + "_" + Scheduler.getStrand().getId();
return transactionId + ":" + transactionBlockId;
}

public void notifyResourceFailure(String gTransactionId) {
Expand Down

0 comments on commit d9700aa

Please sign in to comment.