Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4233 YARN Timeline Service plugin: ATS v1.5
  3. YARN-4937

EntityGroupFSTimelineStore to close cached leveldb instances in serviceStop()

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 2.8.0
    • None
    • timelineserver
    • None
    • JUnit test runs with

    Description

      When I enable ATS1.5 and non-summary data, all my JUnit test runs with it fail pass if called individually. But if executed together, the 2nd+ service fails, key exception text is

      org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: lock /Users/stevel/Projects/spark/yarn-timeline/yarn-timeline-history/target/tmp/integration/leveldb/timelineEntityGroupId_1111_0_application_1111_0000-timeline-cache.ldb/LOCK: already held by process
      
      

      I believe the problem is that EntityGroupFSTimelineStore.cachedLogs isn't cleaning up its logs in serviceStop(), and as my tests use the same directory and appIds in its test runs, the next attempt to create a cache item fails.

      Attachments

        Activity

          People

            Unassigned Unassigned
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: