Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12905

QueryKeyValueIterable missing custom spliterator() implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Critical
    • Resolution: Unresolved
    • 2.8
    • None
    • cache, general
    • None
    • Windows 10
      JDK 1.8.0_172
      ignite-core 2.8.0
      reactor-core 3.3.3

    Description

      We are using apache ignite with reactor-core and since reactors upgrade from 3.2.12 to 3.3.3

      org.apache.ignite.internal.processors.query.QueryKeyValueIterable.iterator
      

      is called multiple times. It starts with:
      1. calling iterable.spliterator().hasCharacteristics(Spliterator.SIZED), where iterable is instanceof QueryKeyValueIterable
      2. calls default implementation Spliterators.spliteratorUnknownSize(iterator(), 0)
      3. which in turn calls ignite's QueryKeyValueIterable.iterator() call and that "uses it up" for subsequent calls, i.e. throw IgniteException "Iterator is already fetched or query was cancelled."

      Attachments

        Activity

          People

            bleedah Johnny Galatikitis
            bleedah Johnny Galatikitis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 6h
                6h