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

Bug in GridCacheWriteBehindStore Flusher thread lookup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.8, 2.7.5, 2.7.6, 2.9, 2.8.1, 2.10, 2.9.1
    • None
    • cache
    • None
    • Docs Required, Release Notes Required

    Description

      There's a bug in GridCacheWriteBehindStore in the flusher method.

      https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/store/GridCacheWriteBehindStore.java#L674

      The logic states there that if flush thread count is not a power of 2,  then
      perform some math that is not guaranteed to return a positive number. For
      example, if you pass this string as a key it returns a negative number:
       accb2e8ea33e4a89b4189463cacc3c4e

      and then throws an array out of bounds exception when looking up the thread.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mberg Mike W
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: