private void closeWriterExecutionService(ExecutorService service) throws CarbonDataWriterException {
  try {
    service.shutdown();
    service.awaitTermination(1,TimeUnit.DAYS);
  }
 catch (  InterruptedException e) {
    LOGGER.error(e,e.getMessage());
    throw new CarbonDataWriterException(e.getMessage());
  }
}

private void closeWriterExecutionService ( ExecutorService service ) throws CarbonDataWriterException { try { service . shutdown ( ) ; service . awaitTermination ( 1 , TimeUnit . DAYS ) ; } catch ( InterruptedException e ) { LOGGER . error ( e , e . getMessage ( ) ) ; throw new CarbonDataWriterException ( e . getMessage ( ) ) ; } }
this method will close writer execution service and get the node holders and add them to node holder list
