mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-3.11' into cassandra-4.0
This commit is contained in:
commit
a124cfce85
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue