Skip to content

Conversation

@sanpwc
Copy link
Contributor

@sanpwc sanpwc commented Oct 22, 2024

https://issues.apache.org/jira/browse/IGNITE-23503

  • After leader election maxObservableSafeTime is initialised as clock.now() + MAX_CLOCK_SKEW.
  • Partition may send thousands of requests while local clock still less than maxObservableSafeTime. That may lead to StackOverflow.

In order to overcome the issue I've added a logic that will await local clock to be greater than violated maxObservableSafeTime.

@sanpwc sanpwc marked this pull request as ready for review October 23, 2024 07:44
new ReplicationMaxRetriesExceededException(replicationGroupId, MAX_RETIES_ON_SAFE_TIME_REORDERING));
}

int attemptsCounter0 = attemptsCounter;
Copy link
Contributor

Choose a reason for hiding this comment

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

why not move it to whenComplete block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because of "Variable used in lambda expression should be final or effectively final"

sanpwc and others added 3 commits October 23, 2024 12:23
…eTimeReorderException.java

Co-authored-by: Denis Chudov <moonglloom@gmail.com>
…istributed/replicator/PartitionReplicaListener.java

Co-authored-by: Denis Chudov <moonglloom@gmail.com>
@sanpwc sanpwc merged commit a86c71d into apache:main Oct 23, 2024
@sanpwc sanpwc deleted the ignite-23503 branch October 23, 2024 10:12
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