Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-151674

RegionFiles are not closed when they are evicted from cache

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1
    • Labels:
      None
    • Environment:
      Irrelevant, affects all server environments
    • Confirmation Status:
      Unconfirmed
    • Category:
      (Unassigned)

      Description

      In RegionFileCache there is a missing close() call to a region file that is evicted from the cache.

      See here: (note these are spigot mappings, without changes from spigot/craftbukkit)

      https://gist.github.com/Spottedleaf/dec40400015df81ad2081df35905e3a8

      The fix is to simply call the close() method on the evicted RegionFile.

        Attachments

          Activity

            People

            • Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              Spottedleaf Spottedleaf
            • Votes:
              9 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: