Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6678

[classlib][concurrent]ArrayIndexOutofBounds exception reported in ConcurrentSkipListSet during load test

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.0M3
    • Fix Version/s: 6.0M3
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      All Operating Systems
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Moderate

      Description

      An ArrayIndexOutofBoundsException is thrown when the toArray(T[]) method is invoked, under load test with multiple threads. Concurrent updates to the collection results in changing Iterator sizes. As per the Javadocs, the result of the toArray(T[]) should return as much elements possible from the Collection.

      A toArray(T[]) method override has been implemented in ConcurrentSkipListSet and the bounds check has been included in the base class AbstractCollection to prevent this exception.

        Attachments

        1. 001_HARMONY_6678.patch
          2 kB
          Prashanth KS
        2. 002_HARMONY_6678.patch
          7 kB
          Prashanth KS

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pxkrish Prashanth KS
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: