Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,29 @@ public Roaring64NavigableMap fetchAllRssTaskIds() {
if (mapIndex < totalMapsCount) {
mapIndexBitmap.addLong(mapIndex);
} else {
LOG.error(taskAttemptID + " has overflowed mapIndex");
throw new IllegalStateException(errMsg);
}
} else {
LOG.warn(taskAttemptID + " is redundant on index: " + mapIndex);
}
} else {
LOG.warn(taskAttemptID + " is successful but cancelled by obsolete event");
}
}
// each map should have only one success attempt
if (mapIndexBitmap.getLongCardinality() != taskIdBitmap.getLongCardinality()) {
throw new IllegalStateException(errMsg);
}
if (tipFailedCount != 0) {
LOG.warn("There are " + tipFailedCount + " tipFailed tasks");
}
if (taskIdBitmap.getLongCardinality() + tipFailedCount != totalMapsCount) {
for (int index = 0; index < totalMapsCount; index++) {
if (!mapIndexBitmap.contains(index)) {
LOG.error("Fail to fetch " + " map task on index: " + index);
}
}
throw new IllegalStateException(errMsg);
}
return taskIdBitmap;
Expand Down