You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/08/27 22:37:31 UTC

[lucene-solr] branch reference_impl_dev updated: @603 children needs to be synchronized.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/reference_impl_dev by this push:
     new 1b621b1  @603 children needs to be synchronized.
1b621b1 is described below

commit 1b621b18855e64cd397c5aefd9994ba10bb82145
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Thu Aug 27 17:36:57 2020 -0500

    @603 children needs to be synchronized.
---
 solr/solrj/src/java/org/apache/solr/common/TimeTracker.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/solr/solrj/src/java/org/apache/solr/common/TimeTracker.java b/solr/solrj/src/java/org/apache/solr/common/TimeTracker.java
index ddef8cf..2ff44c6 100644
--- a/solr/solrj/src/java/org/apache/solr/common/TimeTracker.java
+++ b/solr/solrj/src/java/org/apache/solr/common/TimeTracker.java
@@ -40,7 +40,7 @@ public class TimeTracker {
 
   private volatile long doneTime;
 
-  private final List<TimeTracker> children = new ArrayList<>(16);
+  private final List<TimeTracker> children = Collections.synchronizedList(new ArrayList<>(16));
 
   private final StringBuilder label;