You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by no...@apache.org on 2022/04/19 06:05:35 UTC

[solr] branch main updated: SOLR-16119 DataConfigNode doesn't honor abortable forEach (#766)

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

noble pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 19d9c4cec65 SOLR-16119 DataConfigNode doesn't honor abortable forEach (#766)
19d9c4cec65 is described below

commit 19d9c4cec65eeddd88648dd5313a7d46600019e9
Author: Noble Paul <no...@users.noreply.github.com>
AuthorDate: Tue Apr 19 16:05:30 2022 +1000

    SOLR-16119 DataConfigNode doesn't honor abortable forEach (#766)
---
 solr/core/src/java/org/apache/solr/util/DataConfigNode.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/solr/core/src/java/org/apache/solr/util/DataConfigNode.java b/solr/core/src/java/org/apache/solr/util/DataConfigNode.java
index e8a00075031..f6d2880f43f 100644
--- a/solr/core/src/java/org/apache/solr/util/DataConfigNode.java
+++ b/solr/core/src/java/org/apache/solr/util/DataConfigNode.java
@@ -129,7 +129,9 @@ public class DataConfigNode implements ConfigNode {
     kids.forEachEntry(
         (s, configNodes) -> {
           if (configNodes != null) {
-            configNodes.forEach(fun::apply);
+            for (ConfigNode node : configNodes) {
+              if (Boolean.FALSE == fun.apply(node)) break;
+            }
           }
         });
   }