PankajKaushal commented on issue #9478:
URL: https://github.com/apache/hudi/issues/9478#issuecomment-1685940286

   @ad1happy2go Please find the timeline attached for both table and metadata 
table.
   Yes, you are right, for metadata table there is no commit with replacecommit 
as action. We want to understand that also, as the number of commits are huge 
why compaction is not triggering.
    
   [timeline.txt](https://github.com/apache/hudi/files/12394252/timeline.txt)
   
[metadata_timeline.txt](https://github.com/apache/hudi/files/12394257/metadata_timeline.txt)
   
   
   
     public static void writeToTable(
         Dataset<Row> data, Map<String, String> hudiOptions, String path, 
Pipeline pipeline) {
   
       if (log.isDebugEnabled()) {
         writeToConsole(data);
       }
       int attempt = 1;
       while (attempt <= 3) {
         log.error(
             "writing data for "
                 + pipeline.getOutputDbName()
                 + "."
                 + pipeline.getOutputTableName()
                 + " attempt: "
                 + attempt);
         try {
           
data.write().format(ORG_APACHE_HUDI).options(hudiOptions).mode(SaveMode.Append).save(path);
           break;
         } catch (org.apache.hudi.exception.HoodieRemoteException 
hoodieRemoteException) {
           log.error(
               "hoodieRemoteException for "
                   + pipeline.getOutputDbName()
                   + "."
                   + pipeline.getOutputTableName()
                   + " attempt: "
                   + attempt);
           log.error(hoodieRemoteException.getMessage());
           log.error(hoodieRemoteException.toString());
           attempt += 1;
         } catch (Exception e) {
           SlackAlert.postChatAlert(
               "Exception for "
                   + pipeline.getOutputDbName()
                   + "."
                   + pipeline.getOutputTableName()
                   + " : "
                   + e.getMessage());
           log.error(
               "Exception for "
                   + pipeline.getOutputDbName()
                   + "."
                   + pipeline.getOutputTableName()
                   + " attempt: "
                   + attempt);
           log.error(e.getMessage());
           log.error(e.toString());
           attempt += 1;
         }
       }
       if (attempt > 3) {
         log.error("terminating application tried max attempts");
         System.exit(1);
       }
     }
   


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

To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org

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

Reply via email to