Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-2525

ConcurrentModificationException may be triggered in ElasticsearchProject

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: next
    • Fix Version/s: 1.18.0
    • Component/s: elasticsearch-adapter
    • Labels:
      None

      Description

      //in ElasticsearchProject
      for (String opfield : implementor.list) {
        if (opfield.startsWith("\"_source\"")) {
          implementor.list.remove(opfield);
        }
      }
      

      The ConcurrentModificationException will be trigged when `opField` which are iterating on is removed. This code should be replaced with list.removeIf(Predicate)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                Functor10 Siyuan Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: