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

oak-run: tests leak mapd temp files

    XMLWordPrintableJSON

    Details

      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

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

              Dates

              • Created:
                Updated:
                Resolved: