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

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

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.0M3
    • 6.0M3
    • Classlib
    • None
    • All Operating Systems
    • Patch Available
    • 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

              Unassigned Unassigned
              pxkrish Prashanth KS

              Dates

                Created:
                Updated:

                Slack

                  Issue deployment