[
https://issues.apache.org/jira/browse/CASSANDRA-17244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17546739#comment-17546739
]
David Capwell commented on CASSANDRA-17244:
-------------------------------------------
To repo the original issue, apply the following patch
{code}
diff --git
a/test/distributed/org/apache/cassandra/distributed/test/thresholds/TombstoneCountWarningTest.java
b/test/distributed/org/apache/cassandra/distributed/test/thresholds/TombstoneCountWarningTest.java
index a5ebee9cb9..e5c20ea789 100644
---
a/test/distributed/org/apache/cassandra/distributed/test/thresholds/TombstoneCountWarningTest.java
+++
b/test/distributed/org/apache/cassandra/distributed/test/thresholds/TombstoneCountWarningTest.java
@@ -26,6 +26,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.TimeUnit;
import java.util.function.Consumer;
import com.google.common.collect.ImmutableSet;
@@ -373,8 +374,8 @@ public class TombstoneCountWarningTest extends TestBaseImpl
// called on main thread
public static void blockFor(InetSocketAddress address)
{
- blockFor = address;
- promise = new CompletableFuture<>();
+// blockFor = address;
+// promise = new CompletableFuture<>();
}
// called in C* threads; non-test threads
@@ -423,7 +424,9 @@ public class TombstoneCountWarningTest extends TestBaseImpl
public static void onFailure(InetAddressAndPort from,
RequestFailureReason failureReason, @SuperCall Runnable zuper) throws Exception
{
- State.onFailure(new InetSocketAddress(from.getAddress(),
from.getPort()));
+ if (from.getAddress().getHostAddress().equals("127.0.0.1"))
+ TimeUnit.MINUTES.sleep(10);
+// State.onFailure(new InetSocketAddress(from.getAddress(),
from.getPort()));
zuper.run();
}
{code}
> Fix
> org.apache.cassandra.distributed.test.trackwarnings.TombstoneCountWarningTest.failThresholdSinglePartition
> --------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-17244
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17244
> Project: Cassandra
> Issue Type: Bug
> Components: CI
> Reporter: Ekaterina Dimitrova
> Assignee: David Capwell
> Priority: Normal
> Fix For: 4.1-beta, 4.1.x, 4.x
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> org.apache.cassandra.distributed.test.trackwarnings.TombstoneCountWarningTest.failThresholdSinglePartition
> failed
> [here|https://jenkins-cm4.apache.org/job/Cassandra-devbranch/1354/testReport/junit/org.apache.cassandra.distributed.test.trackwarnings/TombstoneCountWarningTest/failThresholdSinglePartition/]
> I didn't find any other occurrences but seems to me legit failure.
> CC [~dcapwell] as I think you were working on those and probably you will
> make better assessment than me. :)
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]