Lucene - Core
  1. Lucene - Core
  2. LUCENE-2277

QueryNodeImpl throws ConcurrentModificationException on add(List<QueryNode>)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 2.9.4, 3.0.3, 3.1, 4.0-ALPHA
    • Component/s: modules/other
    • Labels:
      None
    • Environment:

      all

    • Lucene Fields:
      New, Patch Available

      Description

      on adding a List of children to a QueryNodeImplemention a ConcurrentModificationException is thrown.
      This is due to the fact that QueryNodeImpl instead of iteration over the supplied list, iterates over its internal clauses List.

      Patch:
      Index: QueryNodeImpl.java
      ===================================================================
      — QueryNodeImpl.java (revision 911642)
      +++ QueryNodeImpl.java (working copy)
      @@ -74,7 +74,7 @@
      .getLocalizedMessage(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED));
      }

      • for (QueryNode child : getChildren()) {
        + for (QueryNode child : children) { add(child); }
      1. addChildren.patch
        0.4 kB
        Frank Wesemann
      2. LUCENE-2277.patch
        3 kB
        Robert Muir

        Activity

        Frank Wesemann created issue -
        Frank Wesemann made changes -
        Field Original Value New Value
        Attachment addChildren.patch [ 12436595 ]
        Michael McCandless made changes -
        Fix Version/s 3.1 [ 12314025 ]
        Robert Muir made changes -
        Assignee Robert Muir [ rcmuir ]
        Robert Muir made changes -
        Attachment LUCENE-2277.patch [ 12438111 ]
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Robert Muir made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Robert Muir made changes -
        Fix Version/s 2.9.4 [ 12315148 ]
        Fix Version/s 3.0.3 [ 12315147 ]
        Fix Version/s 3.1 [ 12314822 ]
        Robert Muir made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12499734 ] Default workflow, editable Closed status [ 12564216 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12564216 ] jira [ 12583986 ]

          People

          • Assignee:
            Robert Muir
            Reporter:
            Frank Wesemann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development