Uploaded image for project: 'Apache Nemo'
  1. Apache Nemo
  2. NEMO-412

Address Sonar Cloud issue for MemoryChunk

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.2

    Description

      In the current MemoryChunk implementation, the checkIndex() function which checks the valid index does not return false which makes the other conditionals meaningless.

      This makes it impossible for the MemoryChunk to check whether this chunk is released or not when accessing it using the random access functions that use UNSAFE.

      Since IndexOutOfBounds exception is thrown after the MemoryChunk release is checked, the checkIndex() function should be changed to either return true or false.

      Attachments

        Issue Links

          Activity

            People

              haeyoon Haeyoon Cho
              haeyoon Haeyoon Cho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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