mauropelucchi opened a new issue #3739:
URL: https://github.com/apache/hudi/issues/3739


   I am trying to see if hudi clean is triggering and cleaning my files, but 
however I do not see any action being performed on cleaning the old log files.
   
   **To Reproduce**
   
   I am writing some files to S3 using hudi with below configuration multiple 
times (more than 4 times to see the cleaning triggered.)
   
   **My hudi config**
   `
   hudi_options_prodcode = {
                   'hoodie.table.name': table_name,
                   'hoodie.datasource.write.recordkey.field': 'posting_key',
                   'hoodie.datasource.write.partitionpath.field': 
'range_partition',
                   'hoodie.datasource.write.table.name': table_name,
                   'hoodie.datasource.write.precombine.field': 'update_date',
                   'hoodie.datasource.write.table.type': 'MERGE_ON_READ',
                   'hoodie.cleaner.policy': 'KEEP_LATEST_COMMITS',
                   'hoodie.consistency.check.enabled': True,
                   'hoodie.bloom.index.filter.type': 'dynamic_v0',
                   'hoodie.bloom.index.bucketized.checking': False,
                   'hoodie.memory.merge.max.size': '2004857600000',
                   'hoodie.upsert.shuffle.parallelism': parallelism,
                   'hoodie.insert.shuffle.parallelism': parallelism,
                   'hoodie.bulkinsert.shuffle.parallelism': parallelism,
                   'hoodie.parquet.small.file.limit': '204857600',
                   'hoodie.parquet.max.file.size': 
str(self.__parquet_max_file_size_byte),
                   'hoodie.memory.compaction.fraction': '384402653184',
                   'hoodie.write.buffer.limit.bytes': str(128 * 1024 * 1024),
                   'hoodie.compact.inline': True,
                   'hoodie.compact.inline.max.delta.commits': 1,
                   'hoodie.datasource.compaction.async.enable': False,
                   'hoodie.parquet.compression.ratio': '0.35',
                   'hoodie.logfile.max.size': '268435456',
                   'hoodie.logfile.to.parquet.compression.ratio': '0.5',
                   'hoodie.datasource.write.hive_style_partitioning': True,
                   'hoodie.keep.min.commits': 5,
                   'hoodie.keep.max.commits': 6,
                   'hoodie.copyonwrite.record.size.estimate': 32,
                   'hoodie.cleaner.commits.retained': 4,
                   'hoodie.clean.automatic': True
   }`
   
   
   **Writing to s3**
   path_to_delta_table = "s3://..../<my test folder>/" 
df.write.format("org.apache.hudi").options(**hudi_options_prodcode).mode("append").save(path_to_delta_table)
   
   **Expected behavior**
   As per my understanding the logs should be deleted after max commit which is 
4 and will keep only one commit at time.
   
   **Environment Description**
   
   Hudi version : 0.6.0 (Amazon version)
   Spark version : 2.4
   Storage (HDFS/S3/GCS..) : S3
   Running on Docker? (yes/no) : No
   EMR : 5.31.0
   
   


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