private void startFileBasedMerge() throws CarbonSortKeyAndGroupByException {
  try {
    dataSorterAndWriterExecutorService.shutdown();
    dataSorterAndWriterExecutorService.awaitTermination(2,TimeUnit.DAYS);
  }
 catch (  InterruptedException e) {
    throw new CarbonSortKeyAndGroupByException("Problem while shutdown the server ",e);
  }
}

private void startFileBasedMerge ( ) throws CarbonSortKeyAndGroupByException { try { dataSorterAndWriterExecutorService . shutdown ( ) ; dataSorterAndWriterExecutorService . awaitTermination ( 2 , TimeUnit . DAYS ) ; } catch ( InterruptedException e ) { throw new CarbonSortKeyAndGroupByException ( "Problem while shutdown the server " , e ) ; } }
below method will be used to start file based merge
