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 2019/03/29 00:18:11 UTC

[GitHub] [incubator-druid] niketh opened a new issue #7376: Failing Broker Queries - Faulty Channel

niketh opened a new issue #7376: Failing Broker Queries - Faulty Channel
URL: https://github.com/apache/incubator-druid/issues/7376
 
 
   Broker queries fail with Faulty Channel Exception
   
   ### Description
   
   This error occurs when the broker queries fail on MM due to improper shutdown of Peon Task. I have patched this locally by explicitly un-announcing the peon task before destroy is called
   
   This change was applied here https://github.com/apache/incubator-druid/blob/master/indexing-service/src/main/java/org/apache/druid/indexing/overlord/ForkingTaskRunner.java#L605
   
   ```
         curatorDruidNodeAnnouncer.unannounce(new DiscoveryDruidNode(
             new DruidNode(
                 node.getServiceName(),
                 node.getHost(),
                 taskInfo.processHolder.port,
                 taskInfo.processHolder.port,
                 taskInfo.processHolder.tlsPort,
                 node.isEnablePlaintextPort(),
                 node.isEnableTlsPort()
             ),
             DruidNodeDiscoveryProvider.NODE_TYPE_PEON,
             ImmutableMap.of()
         ));
   
         try {
           log.info("Destroying task: %s . Sleeping for 10000 millis", taskid);
           Thread.sleep(10000);
         } catch (InterruptedException e) {
           log.error("Sleep interuppedted for task: %s", taskid);
         }
   
         taskInfo.processHolder.process.destroy();
   ```
   
   This is similar to https://github.com/apache/incubator-druid/issues/6043 but the exceptions reported there are slightly different.
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

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