XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • timelineserver
    • None
    • Reviewed

    Description

      Timelineserver should validate that yarn.timeline-service.ttl-ms is greater than zero

      Currently if set yarn.timeline-service.ttl-ms=0
      Or yarn.timeline-service.ttl-ms=-86400

      Timeline server start successfully with complaining

      2014-06-15 14:52:16,562 INFO  timeline.LeveldbTimelineStore (LeveldbTimelineStore.java:<init>(247)) - Starting deletion thread with ttl -604800000 and cycle interval 300000
      

      At starting timelinserver should that yarn.timeline-service-ttl-ms > 0
      otherwise specially for -ive value discard oldvalues timestamp will be set future value. Which may lead to inconsistancy in behavior

          public void run() {
            while (true) {
              long timestamp = System.currentTimeMillis() - ttl;
              try {
                discardOldEntities(timestamp);
                Thread.sleep(ttlInterval);
      

      Attachments

        1. YARN-2165.1.patch
          9 kB
          Vasanth kumar RJ
        2. YARN-2165.2.patch
          12 kB
          Vasanth kumar RJ
        3. YARN-2165.3.patch
          15 kB
          Vasanth kumar RJ
        4. YARN-2165.4.patch
          15 kB
          Vasanth kumar RJ
        5. YARN-2165.patch
          1 kB
          Vasanth kumar RJ

        Issue Links

          Activity

            People

              vasanthkumar Vasanth kumar RJ
              karams Karam Singh
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: