Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-3861

When a system service (metrics, log.saver, explore etc) is stopped, not all the dependent services are stopped

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.1.0, 3.0.0, 2.8.0, 2.7.1, 2.6.0, 2.5.0
    • Fix Version/s: 3.3.0, 3.0.6, 2.8.3, 3.2.1
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      Fixed an issue about stopping all dependent services when a service is stopped.
    • Rank:
      1|hzz0y7:

      Description

      When we stop CDAP master, we stop the system services run as a part of master.

      when metrics.processor which is stopped, it stops dependent services

      {MetricsCollectionService, MetricsProcessorStatusService, KafkaClientService, ZKClientService, MetricsProcessorService}

      we noticed in the logs that all these dependent services were not stopped before terminating the twill runnable.

      2015-09-24 22:49:44,544 - INFO  [message-callback-0:c.c.c.m.s.DefaultMetricDatasetFactory@99] - FactTable created: metrics.v2.table.ts.2147483647
      2015-09-24 22:51:16,759 - INFO  [TwillContainerService:c.c.c.c.t.AbstractMasterTwillRunnable@129] - Runnable stopped metrics.processor
      2015-09-24 22:51:16,772 - INFO  [MetricsProcessorStatusService STOPPING:c.c.c.m.p.MetricsProcessorStatusService@93] - Stopping MetricsProcessor Status Service...
      2015-09-24 22:51:16,821 - INFO  [NettyHttpService STOPPING:c.c.h.NettyHttpService@274] - Stopping service on address metricsfix3408-1000.dev.continuuity.net/10.240.9.246:58227...
      2015-09-24 22:51:16,827 - INFO  [TwillContainerService:o.a.t.i.AbstractTwillService@209] - Remove live node metricsfix3408-1000.dev.continuuity.net:2181/cdap/twill/master.services/58a44a6e-284d-425b-8a11-219d7e1d4142/runnables/metrics.processor/instances/d7b2d402-21f5-4b00-9d1d-fac7be2a00a8-0
      2015-09-24 22:51:16,844 - INFO  [TwillContainerService:o.a.t.i.AbstractTwillService@190] - Service TwillContainerService with runId d7b2d402-21f5-4b00-9d1d-fac7be2a00a8-0 shutdown completed
      2015-09-24 22:51:16,907 - INFO  [main:o.a.t.i.ServiceMain@100] - Service TwillContainerService [TERMINATED] completed.
      2015-09-24 22:51:16,925 - INFO  [NettyHttpService STOPPING:c.c.h.NettyHttpService@284] - Done stopping service on address metricsfix3408-1000.dev.continuuity.net/10.240.9.246:58227
      2015-09-24 22:51:16,926 - INFO  [MetricsProcessorStatusService STOPPING:c.c.c.m.p.MetricsProcessorStatusService@100] - MetricsProcessor Status Service Stopped
      2015-09-24 22:51:16,927 - INFO  [MetricsProcessorStatusService STOPPING:c.c.c.m.p.MetricsProcessorStatusService@102] - Stopped MetricsProcessor Status Service.
      2015-09-24 22:51:16,928 - INFO  [TwillZKPathService STOPPING:o.a.t.i.ServiceMain$TwillZKPathService@284] - Removing container ZK path: metricsfix3408-1000.dev.continuuity.net:2181/cdap/twill/master.services/58a44a6e-284d-425b-8a11-219d7e1d4142/runnables/metrics.processor/d7b2d402-21f5-4b00-9d1d-fac7be2a00a8-0
      2015-09-24 22:51:16,932 - INFO  [MetricsProcessorStatusService STOPPING:c.c.c.c.t.AbstractMasterTwillRunnable@136] - Service co.cask.cdap.metrics.process.MetricsProcessorStatusService terminated
      2015-09-24 22:51:16,933 - INFO  [MetricsProcessorService STOPPING:c.c.c.c.r.ResourceBalancerService@141] - Stopping ResourceBalancer metrics.processor.kafka.consumer service...
      

      CDAP FIX VERSIONS
      This issue needs to be fixed for:

      • 3.3.0 - DONE
      • 3.2.1 - DONE
      • 3.1.3 - DONE
      • 3.0.6 - DONE
      • 2.8.3 - DONE

        Attachments

          Activity

            People

            • Assignee:
              shankar Shankar Selvam
              Reporter:
              shankar Shankar Selvam
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: