Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16628

Occasional resource leak around XmlConfigFile parsing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.9
    • 9.2
    • None
    • None

    Description

      Currently, xml config file parsing can in exceptional circumstances lead to resource leaks (InputStream not being closed). This has occasionally shown up in tests and presumably could also manifest in the wild.

      I suspect (but am not certain) that these changes may have been introduced in version 8.9 by SOLR-15337 (closing of byte streams in xml parsing is unusual iiuc in that according to spec, closing is handled internal to the parser, so it's easy to rely on that behavior and things will usually be ok. But we should take extra steps to ensure the InputStreams are always closed).

      Attachments

        Issue Links

          Activity

            People

              magibney Michael Gibney
              magibney Michael Gibney
              Votes:
              0 Vote for this issue
              Watchers:
              6 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 - 8h 20m
                  8h 20m