zhuanshenbsj1 commented on code in PR #9038:
URL: https://github.com/apache/hudi/pull/9038#discussion_r1252054975
##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/TestCleaner.java:
##########
@@ -1004,23 +1098,24 @@ private void testPendingCompactions(HoodieWriteConfig
config, int expNumFilesDel
HoodieTableMetadataWriter metadataWriter =
SparkHoodieBackedTableMetadataWriter.create(hadoopConf, config, context);
final String partition = "2016/03/15";
+ String timePrefix = "00000000000";
Review Comment:
Clean instant is after instant-000 before adjustment, this is unreasonable,
it should be at the end
before adjustment:
localTimeline=[[000__commit__COMPLETED__20230704200732288],
[000000001__clean__COMPLETED__20230704200742843],
[001__commit__COMPLETED__20230704200733129],
[003__commit__COMPLETED__20230704200734117],
[==>004__compaction__REQUESTED__20230704200734125],
[005__commit__COMPLETED__20230704200734948],
[0055__commit__COMPLETED__20230704200735880],
[==>006__compaction__REQUESTED__20230704200735885],
[007__commit__COMPLETED__20230704200736807],
[0075__commit__COMPLETED__20230704200737690],
[==>008__compaction__REQUESTED__20230704200737694],
[009__commit__COMPLETED__20230704200738629],
[0095__commit__COMPLETED__20230704200739576],[==>010__compaction__REQUESTED__20230704200739580],
[011__commit__COMPLETED__20230704200740426],
[013__commit__COMPLETED__20230704200741363]
after adjustment:
localTimeline=[[00000000000000__commit__COMPLETED__20230704200400940],
[00000000000001__commit__COMPLETED__20230704200401790],
[00000000000003__commit__COMPLETED__20230704200402888],
[==>00000000000004__compaction__REQUESTED__20230704200402896],
[00000000000005__commit__COMPLETED__20230704200403841],
[000000000000055__commit__COMPLETED__20230704200404879],
[==>00000000000006__compaction__REQUESTED__20230704200404883],
[00000000000007__commit__COMPLETED__20230704200405861],
[000000000000075__commit__COMPLETED__20230704200406790],
[==>00000000000008__compaction__REQUESTED__20230704200406797],
[00000000000009__commit__COMPLETED__20230704200407808],
[000000000000095__commit__COMPLETED__20230704200408834],
[==>00000000000010__compaction__REQUESTED__20230704200408839],
[00000000000011__commit__COMPLETED__20230704200410653],
[00000000000013__commit__COMPLETED__20230704200411934],
[00000000000014__clean__COMPLETED__20230704200413695]]
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]