Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5725

Many WAN DUnit tests with off-heap enabled aren't actually exercising off-heap

    XMLWordPrintableJSON

Details

    Description

      Many of the WAN DUnit tests are run with both off-heap disabled and enabled. However, there is an optimization in the off-heap implementation where if the entry value is less than 8-bytes, off-heap is bypassed and the value is put on the heap. This is due to the value being equal to or less than the size of the off-heap address that would have been used. It is therefore pointless to use off-heap if the value itself is less than the size of the address.

      In many WAN tests we are using longs as values, which will bypass off-heap in this way. However, it is expected that off-heap is being exercised. We should instead use another data type (strings) as values to be sure that the off-heap feature is actually being exercised.

      Attachments

        Issue Links

          Activity

            People

              rmcmahon Ryan McMahon
              rmcmahon Ryan McMahon
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 1h 10m
                  1h 10m