You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/01/09 23:47:15 UTC
[GitHub] [hudi] manojpec commented on a change in pull request #4530: [HUDI-3178] Fixing metadata table compaction so as to not include uncommitted data
manojpec commented on a change in pull request #4530:
URL: https://github.com/apache/hudi/pull/4530#discussion_r780847869
##########
File path: hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java
##########
@@ -689,7 +689,7 @@ protected void compactIfNecessary(AbstractHoodieWriteClient writeClient, String
String latestDeltacommitTime = metadataMetaClient.reloadActiveTimeline().getDeltaCommitTimeline().filterCompletedInstants().lastInstant()
.get().getTimestamp();
List<HoodieInstant> pendingInstants = dataMetaClient.reloadActiveTimeline().filterInflightsAndRequested()
- .findInstantsBefore(latestDeltacommitTime).getInstants().collect(Collectors.toList());
+ .findInstantsBefore(instantTime).getInstants().collect(Collectors.toList());
Review comment:
`compactionInstantTime` at line 703 has to be based off `instantTime` and not `latestDeltaCommitTime`. Latest delta commit time is not part of the compaction yet. Otherwise we are changing the meaning of the current compaction timeline with this change.
--
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-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org