You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/02/19 03:08:53 UTC

[GitHub] [druid] ruibinx opened a new issue #10902: Index Kafka job shutdown without any exceptions

ruibinx opened a new issue #10902:
URL: https://github.com/apache/druid/issues/10902


   ### Affected Version
   
   0.19.0
   
   ### Description
   
   Occasionally index kafka job shutdown without any exceptions. The status reports is 'FAILED', and there is no exceptions in logs.
   
   status:
   
   ```
   {
     "id": "index_kafka_metric_duration_result_acb68b573f08e0e_jjfpjpnj",
     "groupId": "index_kafka_metric_duration_result",
     "type": "index_kafka",
     "createdTime": "2021-02-19T00:13:39.461Z",
     "queueInsertionTime": "1970-01-01T00:00:00.000Z",
     "statusCode": "FAILED",
     "status": "FAILED",
     "runnerStatusCode": "WAITING",
     "duration": -1,
     "location": {
       "host": "dx-pipe-pt25-pm",
       "port": 8109,
       "tlsPort": -1
     },
     "dataSource": "metric_duration_result",
     "errorMsg": null
   }
   ```
   
   and tail of logs:
   
   ```
   2021-02-19T00:51:53,988 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-18T00:00:00.000Z_2021-02-18T01:00:00.000Z_2021-02-18T02:39:13.161Z_935] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:13:54.322Z_b62ef49624db40619bdf522d5b96e9f70]
   2021-02-19T00:51:53,988 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-16T07:00:00.000Z_2021-02-16T08:00:00.000Z_2021-02-18T02:39:13.603Z_852] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:13:54.322Z_b62ef49624db40619bdf522d5b96e9f70]
   2021-02-19T00:51:53,988 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-13T04:00:00.000Z_2021-02-13T05:00:00.000Z_2021-02-18T02:39:52.478Z_715] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:42:53.161Z_dc01fd4a65cc4376935d93738792c68b2]
   2021-02-19T00:51:53,989 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-16T17:00:00.000Z_2021-02-16T18:00:00.000Z_2021-02-18T02:46:28.544Z_606] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:13:54.322Z_b62ef49624db40619bdf522d5b96e9f70]
   2021-02-19T00:51:53,989 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-13T10:00:00.000Z_2021-02-13T11:00:00.000Z_2021-02-18T02:39:55.748Z_698] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:42:53.161Z_dc01fd4a65cc4376935d93738792c68b2]
   2021-02-19T00:51:53,989 INFO [Thread-43] org.apache.zookeeper.ZooKeeper - Session: 0x501f897c8155294 closed
   2021-02-19T00:51:53,989 INFO [Thread-43] org.apache.druid.java.util.common.lifecycle.Lifecycle - Stopping lifecycle [module] stage [INIT]
   2021-02-19T00:51:53,989 INFO [main-EventThread] org.apache.zookeeper.ClientCnxn - EventThread shut down for session: 0x501f897c8155294
   2021-02-19T00:51:53,989 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-18T14:00:00.000Z_2021-02-18T15:00:00.000Z_2021-02-18T16:26:20.440Z_183] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:13:54.322Z_b62ef49624db40619bdf522d5b96e9f70]
   2021-02-19T00:51:53,990 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-18T07:00:00.000Z_2021-02-18T08:00:00.000Z_2021-02-18T06:53:06.683Z_752] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:13:54.322Z_b62ef49624db40619bdf522d5b96e9f70]
   2021-02-19T00:51:53,990 INFO [task-runner-0-priority-0] org.apache.druid.server.coordination.BatchDataSegmentAnnouncer - Unannouncing segment[metric_duration_result_2021-02-18T16:00:00.000Z_2021-02-18T17:00:00.000Z_2021-02-18T18:28:48.601Z_97] at path[/druid/segments/dx-pipe-pt25-pm:8109/dx-pipe-pt25-pm:8109_indexer-executor__default_tier_2021-02-19T00:13:54.322Z_b62ef49624db40619bdf522d5b96e9f70]
   ```
   
   All the above is unannouncing logs. 
   
   ```
   2021-02-19T00:51:53,989 INFO [Thread-43] org.apache.zookeeper.ZooKeeper - Session: 0x501f897c8155294 closed
   ```
   I'm not quite sure why session is closed in zk and if it's related to the problem.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] jasonk000 edited a comment on issue #10902: Index Kafka job throws Interrupted Exception during shutdown.

Posted by GitBox <gi...@apache.org>.
jasonk000 edited a comment on issue #10902:
URL: https://github.com/apache/druid/issues/10902#issuecomment-850017416


   Seems most likely related to this
   https://github.com/apache/druid/blob/8296123d895db7d06bc4517db5e767afb7862b83/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTask.java#L155-L163
   
   If `druid.indexer.task.restoreTasksOnRestart` is not true, then `stopForcefully` is issued.
   ```
   
     @Override
     public void stopGracefully(TaskConfig taskConfig)
     {
       if (taskConfig.isRestoreTasksOnRestart()) {
         getRunner().stopGracefully();
       } else {
         getRunner().stopForcefully();
       }
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] jasonk000 edited a comment on issue #10902: Index Kafka job throws Interrupted Exception during shutdown.

Posted by GitBox <gi...@apache.org>.
jasonk000 edited a comment on issue #10902:
URL: https://github.com/apache/druid/issues/10902#issuecomment-850017416


   Seems most likely related to this
   https://github.com/apache/druid/blob/8296123d895db7d06bc4517db5e767afb7862b83/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTask.java#L155-L163
   
   If `druid.indexer.task.restoreTasksOnRestart` is not true, then `stopForcefully` is issued.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] jasonk000 commented on issue #10902: Index Kafka job throws Interrupted Exception during shutdown.

Posted by GitBox <gi...@apache.org>.
jasonk000 commented on issue #10902:
URL: https://github.com/apache/druid/issues/10902#issuecomment-850017416


   Seems most likely related to this
   https://github.com/apache/druid/blob/8296123d895db7d06bc4517db5e767afb7862b83/indexing-service/src/main/java/org/apache/druid/indexing/seekablestream/SeekableStreamIndexTask.java#L155-L163
   
   If `restoreTasksOnRestart` is not true, then `stopForcefully` is issued.
   ```
   
     @Override
     public void stopGracefully(TaskConfig taskConfig)
     {
       if (taskConfig.isRestoreTasksOnRestart()) {
         getRunner().stopGracefully();
       } else {
         getRunner().stopForcefully();
       }
     }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] zhangyouxun commented on issue #10902: Index Kafka job throws Interrupted Exception during shutdown.

Posted by GitBox <gi...@apache.org>.
zhangyouxun commented on issue #10902:
URL: https://github.com/apache/druid/issues/10902#issuecomment-809854029


   I met the same problem.how to solve it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org