[
https://issues.apache.org/jira/browse/CALCITE-2525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603306#comment-16603306
]
Andrei Sereda commented on CALCITE-2525:
----------------------------------------
This will be fixed, independently, by CALCITE-2528 (as part of code changes for
aggregation)
> ConcurrentModificationException may be triggered in ElasticsearchProject
> ------------------------------------------------------------------------
>
> Key: CALCITE-2525
> URL: https://issues.apache.org/jira/browse/CALCITE-2525
> Project: Calcite
> Issue Type: Bug
> Components: elasticsearch-adapter
> Affects Versions: next
> Reporter: Siyuan Liu
> Assignee: Julian Hyde
> Priority: Major
> Fix For: next
>
>
> {code:java}
> //in ElasticsearchProject
> for (String opfield : implementor.list) {
> if (opfield.startsWith("\"_source\"")) {
> implementor.list.remove(opfield);
> }
> }
> {code}
> The ConcurrentModificationException will be trigged when `opField` which are
> iterating on is removed. This code should be replaced with
> list.removeIf(Predicate)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)