[ https://issues.apache.org/jira/browse/CASSANDRA-20670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Capwell updated CASSANDRA-20670: -------------------------------------- Attachment: ci_summary-cassandra-4.1-a55cc66a69b73718d7d395e4b245f6b57241e694.html ci_summary-cassandra-5.0-a8fe5dd248ebe86486f84f3e04f7af68debde8d4.html ci_summary-trunk-385a6fe9b5f83511c1c2444b6da98971e3c7f154.html result_details-cassandra-5.0-a8fe5dd248ebe86486f84f3e04f7af68debde8d4.tar.gz result_details-trunk-385a6fe9b5f83511c1c2444b6da98971e3c7f154.tar.gz > IntrusiveStack.accumulate is not accumulating correctly > ------------------------------------------------------- > > Key: CASSANDRA-20670 > URL: https://issues.apache.org/jira/browse/CASSANDRA-20670 > Project: Apache Cassandra > Issue Type: Bug > Components: Legacy/Core > Reporter: Yuqi Yan > Assignee: Yuqi Yan > Priority: Normal > Attachments: > ci_summary-cassandra-4.1-a55cc66a69b73718d7d395e4b245f6b57241e694.html, > ci_summary-cassandra-5.0-a8fe5dd248ebe86486f84f3e04f7af68debde8d4.html, > ci_summary-trunk-385a6fe9b5f83511c1c2444b6da98971e3c7f154.html, > result_details-cassandra-5.0-a8fe5dd248ebe86486f84f3e04f7af68debde8d4.tar.gz, > result_details-trunk-385a6fe9b5f83511c1c2444b6da98971e3c7f154.tar.gz > > Time Spent: 10m > Remaining Estimate: 0h > > {code:java} > protected static <T extends IntrusiveStack<T>> long accumulate(T list, > LongAccumulator<T> accumulator, long initialValue) > { > long value = initialValue; > while (list != null) > { > value = accumulator.apply(list, initialValue); > ^^^ > list = list.next; > } > return value; > } {code} > Seems we're restarting from the beginning every time when accumulating. This > is used in Paxos V2 when aggregating the responses from peers. > Here we'll always return 1 even there are more than 1 failures returned by > peer nodes - hence we'll be never throwing Read/WriteFailureExceptions if we > have 3 nodes and using quorum. (failure count will always be 1, poll_size = > 3, poll_size - failure = 2 == quorum hence not considered a "failure") > Added a simple unit test around FailureRecordingCallback to reproduce this -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org