This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
The following commit(s) were added to refs/heads/trunk by this push:
new 3d6392f4 ShardDurability.markDefunct() called O(N²) times across
topology updates, causing log spam and OOM in tests (#277)
3d6392f4 is described below
commit 3d6392f4eca41d3036a704f1513020c24689f1bb
Author: dcapwell <[email protected]>
AuthorDate: Fri May 29 09:10:23 2026 -0700
ShardDurability.markDefunct() called O(N²) times across topology updates,
causing log spam and OOM in tests (#277)
patch by David Capwell; reviewed by Benedict Elliott Smith for
CASSANDRA-21410
---
.../src/main/java/accord/local/durability/ShardDurability.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/accord-core/src/main/java/accord/local/durability/ShardDurability.java
b/accord-core/src/main/java/accord/local/durability/ShardDurability.java
index 3928c7b9..db69970f 100644
--- a/accord-core/src/main/java/accord/local/durability/ShardDurability.java
+++ b/accord-core/src/main/java/accord/local/durability/ShardDurability.java
@@ -169,6 +169,8 @@ public class ShardDurability
void markDefunct()
{
+ if (stopping)
+ return;
if (!adhoc)
logger.info("Marking shard durability scheduler {} for {}
defunct", id, shard);
stopping = true;
@@ -828,4 +830,4 @@ public class ShardDurability
return waiting;
}
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]