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:09:28 UTC
[solr] branch branch_9x 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 branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new f8fb7f44069 SOLR-16119 DataConfigNode doesn't honor abortable forEach (#766)
f8fb7f44069 is described below
commit f8fb7f440697ec0c37db331140da29708cf0de2e
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;
+ }
}
});
}