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

make RedisSet's measurement of bytes in use more accurate

    XMLWordPrintableJSON

Details

    Description

      RedisSet currently uses constants to help keep track of the size of bytes in use by that RedisSet. The way that the size increases when members are added is not constant, and is affected by resizing. It is possible to get the measurement to be exactly accurate, by dynamically calculating the overhead based on the current capacity and how many entries there are. In order to test this with mocks, the delta will need to be set to null explicitly after it is applied.
      This relates to: https://github.com/apache/geode/commit/6a0eba25d5ed5cc7146ce6374d39dd12b22745f3

      Attachments

        Issue Links

          Activity

            People

              donalevans Donal Evans
              balesh2 Hale Bales
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: