Merge branch 'cassandra-3.11' into cassandra-4.0

This commit is contained in:
Stefan Miklosovic 2024-02-29 11:36:57 +01:00
commit a124cfce85
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,7 @@
* Remove bashisms for mx4j tool in cassandra-env.sh (CASSANDRA-19416)
* Add new concurrent_merkle_tree_requests config property to prevent OOM during multi-range and/or multi-table repairs (CASSANDRA-19336)
Merged from 3.11:
* Move ClientWarn.State#warnings to a thread-safe list (CASSANDRA-19427)
Merged from 3.0:
* Fix SCM URL link (CASSANDRA-19422)
* Backport CASSANDRA-16418 to 3.x (CASSANDRA-18824)

View File

@ -17,7 +17,7 @@
*/
package org.apache.cassandra.service;
import java.util.ArrayList;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.List;
import io.netty.util.concurrent.FastThreadLocal;
@ -71,7 +71,9 @@ public class ClientWarn implements ExecutorLocal<ClientWarn.State>
public static class State
{
private final List<String> warnings = new ArrayList<>();
// This must be a thread-safe list. Even though it's wrapped in a ThreadLocal, it's propagated to each thread
// from shared state, so multiple threads can reference the same State.
private final List<String> warnings = new CopyOnWriteArrayList<>();
private void add(String warning)
{