Skip to content

[IOTDB-4403] Add retry interface for IStateMachine#7303

Merged
JackieTien97 merged 5 commits intoapache:masterfrom
SzyWilliam:ratis_retry_interface
Sep 15, 2022
Merged

[IOTDB-4403] Add retry interface for IStateMachine#7303
JackieTien97 merged 5 commits intoapache:masterfrom
SzyWilliam:ratis_retry_interface

Conversation

@SzyWilliam
Copy link
Member

To guarantee consistency in RatisConsensus, we should retry some failed apply write result.

refer to design doc: https://apache-iotdb.feishu.cn/docx/doxcnj0pH6Jm9pFWEEexa4opdXb

* @return time in millis
*/
default long getSleepTime() {
return 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

give it a default value intstead of 0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines +128 to +130
default RetryPolicy retryPolicy() {
return (IStateMachine.RetryPolicy) this;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default RetryPolicy retryPolicy() {
return (IStateMachine.RetryPolicy) this;
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@JackieTien97 JackieTien97 merged commit 8e47cd8 into apache:master Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants