Skip to content

Commit

Permalink
release 2.0.1
Browse files Browse the repository at this point in the history
add maxTimeTryingTreatAsFailed,
fix all the channel client connected to server auto close if no transaction store saved for a long time.

Co-Authored-By: Neumann789 <[email protected]>
  • Loading branch information
changmingxie and Neumann789 committed Sep 20, 2022
1 parent 0b04e2f commit 8f77efa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<properties>
<java.version>1.8</java.version>
<revision>2.0.1-SNAPSHOT</revision>
<revision>2.0.1</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private void tryTreatAsFailed(TransactionStore transactionStore, TransactionStat
int maxTimeTreatTryingAsFailed = recoveryConfig.getMaxTimeTreatTryingAsFailed();
if (maxTimeTreatTryingAsFailed > 0
&& (currentTime.getTime() - lastUpdateTime.getTime()) > maxTimeTreatTryingAsFailed * 1000) {
//update the status to cancel, waiting for the recovery task to recover
//update the status to cancel or try failed, waiting for the recovery task to recover
transactionStore.setVersion(transactionStore.getVersion() + 1);
transactionStore.setStatusId(transactionStatus.getId());
transactionStorage.update(transactionStore);
Expand Down

0 comments on commit 8f77efa

Please sign in to comment.