Skip to content

Commit

Permalink
#792: skip seen containers enqueued twice (b98dc52 regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Jan 26, 2022
1 parent 0aa4519 commit f91e560
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,14 @@ protected void process(IItem item) throws Exception {
return;
}

// ignore already commited items. If they are containers without all their
// subitems commited, process again
// ignore already committed items. If they are containers without all their
// subitems committed, process again
if (Arrays.binarySearch(commitedtrackIDs, trackID) >= 0) {
if (!parentsWithLostSubitems.contains(trackID)) {
// we must "remove" seen containers from set below. It is possible for the same
// container to be enqueued twice: if it is a subItem/carved of some allocated
// parent being processed again, coming from some datasource reader, AND if it
// was already committed, coming from the index.
if (!parentsWithLostSubitems.remove(trackID)) {
item.setToIgnore(true);
return;
}
Expand Down

0 comments on commit f91e560

Please sign in to comment.