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

Replace usage of deprecated RAMOutputStream

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7, 8.0
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      While reviewing code in FrozenBufferedUpdates I noticed that it uses the deprecated RAMOutputStream. This issue fixes it. Separately we should reduce the usage of that class, so that we can really remove it.

       

      Besides that, while running tests I hit a test failure which at first I thought was related to this change, but then noticed that the test doesn't close the DirectoryReader (I run tests on Windows), so that fix is included in this patch too.

        Attachments

        1. LUCENE-8588.patch
          5 kB
          Shai Erera

          Issue Links

            Activity

              People

              • Assignee:
                shaie Shai Erera
                Reporter:
                shaie Shai Erera
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: