ibessonov commented on code in PR #5679: URL: https://github.com/apache/ignite-3/pull/5679#discussion_r2060351686
########## modules/raft/src/main/java/org/apache/ignite/internal/raft/RetryContext.java: ########## @@ -60,6 +69,11 @@ class RetryContext { */ private final Set<Peer> unavailablePeers = new HashSet<>(); + /** + * List of last {@value MAX_RETRY_REASONS} retry reasons. {@link LinkedList} in order to allow fast head removal upon overflow. + */ + private final List<RetryReason> retryReasons = new LinkedList<>(); Review Comment: I change my mind. `ArrayDeque` still copies the entire array when you do `remove(0)` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org