amogh-jahagirdar commented on code in PR #19187:
URL: https://github.com/apache/iceberg/pull/19187#discussion_r4732534034
##########
core/src/main/java/org/apache/iceberg/ManifestFilterManager.java:
##########
@@ -92,6 +93,9 @@ public String partition() {
// cache filtered manifests to avoid extra work when commits fail.
private final Map<ManifestFile, ManifestFile> filteredManifests =
Maps.newConcurrentMap();
+ // the manifests that filteredManifests was filled from, by path, with the
metadata they inherited
+ private final Map<String, ManifestFile> filteredSources =
Maps.newConcurrentMap();
Review Comment:
cc @rdblue @timothyw553 Should we just fix this by keying the existing
caches on the manifest path plus its sequence number and first row ID? I think
that's better since the same caching is used in `SnapshotProducer`,
`ManifestFilterManager` and `ManifestMergeManager`, and each cache's semantic
is that a cached result is valid for a given input manifest. A staged manifest
keeps its path across retries but its sequence number and first row ID change,
so keying only on the path isn't right. It also avoids the extra map in
`ManifestFilterManager`, and I think we should try to keep that state small
where we can.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]