Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8624

oak-run: tests leak mapd temp files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4.25, 1.18.0, 1.8.18, 1.10.6, 1.6.19
    • run
    • None

    Description

      This is because MapDBMapFactory is backed by temporary DB, but that one is never closed.

      Fix:

      • make it closeable
      • adapt test case and use in RecoveryCommand

      However, RecoveryCommand sets the MapFactory instance globally, and never resets it. Thus, if the factory is indeed closed, subsequent tests will fail. So, in RecoveryCommand, restore the default factory when done.

      Attachments

        1. OAK-8624.diff
          4 kB
          Julian Reschke

        Activity

          People

            reschke Julian Reschke
            reschke Julian Reschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: