Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5355 YARN Timeline Service v.2: alpha 2
  3. YARN-6342

Make TimelineV2Client's drain timeout after stop configurable

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Found these with rohithsharma while browsing the code

      • In stop: it calls shutdownNow which doens't wait for pending tasks, should it use shutdown instead ?
            public void stop() {
              LOG.info("Stopping TimelineClient.");
              executor.shutdownNow();
              try {
                executor.awaitTermination(DRAIN_TIME_PERIOD, TimeUnit.MILLISECONDS);
              } catch (InterruptedException e) {
        
      • In TimelineClientImpl#createRunnable:
        If any exception happens when publish one entity (publishWithoutBlockingOnQueue), the thread exists. I think it should try best effort to continue publishing the timeline entities, one failure should not cause all followup entities not published.

      Attachments

        1. YARN-6342.00.patch
          3 kB
          Haibo Chen
        2. YARN-6342.01.patch
          4 kB
          Haibo Chen
        3. YARN-6342.02.patch
          4 kB
          Haibo Chen

        Issue Links

          Activity

            People

              haibochen Haibo Chen
              jianhe Jian He
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: