Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8642

RamUsageTester.sizeOf ignores arrays and collections if --illegal-access=deny

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

      We have a silent fall-through on catch clause there if a field is inaccessible. This causes all collections to not be recursively descended into.

      We could hack it so that collection objects are counted "manually". Or we could propagate illegal access exception from ram tester, detect which tests/ objects do try to measure collection objects and either remove them (if it's not possible to measure accurately) or change them (if it is possible to estimate the size in a different way).

      Looking for feedback on this one.

      Attachments

        Issue Links

          Activity

            People

              dweiss Dawid Weiss
              dweiss Dawid Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: