-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8848: [Backport stable/1.3] fix: avoid transition to inactive when log storage installation fails r=romansmirnov a=romansmirnov ## Description When the installation of the `LogStorage` fails because the targeted term does not match Raft's term, then throw a specific exception. This is an expected state because while installing the partition a leadership change happened causing a new term in Raft. That specific exception is treated differently, meaning, no Raft transition is requested by Zeebe, because for sure a new Zeebe transition was scheduled that will (re-)install the services. <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> backports #8767, relates to #8717 Co-authored-by: Roman <[email protected]>
- Loading branch information
Showing
5 changed files
with
85 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../camunda/zeebe/broker/system/partitions/impl/RecoverablePartitionTransitionException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under | ||
* one or more contributor license agreements. See the NOTICE file distributed | ||
* with this work for additional information regarding copyright ownership. | ||
* Licensed under the Zeebe Community License 1.1. You may not use this file | ||
* except in compliance with the Zeebe Community License 1.1. | ||
*/ | ||
package io.camunda.zeebe.broker.system.partitions.impl; | ||
|
||
/** | ||
* This exception should be used to indicate that the transition was aborted intentionally and | ||
* should not be treated as a failure. | ||
*/ | ||
public class RecoverablePartitionTransitionException extends RuntimeException { | ||
|
||
public RecoverablePartitionTransitionException(final String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters