Skip to content
Merged
Show file tree
Hide file tree
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 @@ -58,6 +58,7 @@
import org.slf4j.LoggerFactory;

import com.google.common.base.Optional;
import com.google.common.collect.ImmutableSortedMap;

public class FileUtil {

Expand Down Expand Up @@ -332,8 +333,7 @@ public static SortedMap<Double,Key> findMidPoint(VolumeManager fs, AccumuloConfi
// need to pass original map files, not possibly reduced indexes
return findMidPoint(fs, acuConf, prevEndRow, endRow, origMapFiles, minSplit, false);
}
throw new IOException("Failed to find mid point, no entries between " + prevEndRow + " and "
+ endRow + " for " + mapFiles);
return ImmutableSortedMap.of();
}

// @formatter:off
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,17 @@ private SplitRowSpec findSplitRow(Collection<FileRef> files) {
return null;
}

if (keys.isEmpty()) {
log.info("Cannot split tablet " + extent + ", files contain no data for tablet.");

// set the following to keep tablet from attempting to split until the tablets set of files
// changes.
sawBigRow = true;
timeOfLastMinCWhenBigFreakinRowWasSeen = lastMinorCompactionFinishTime;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be another PR but might want to come up with better naming for these variables given they are being used for this case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do that as a follow on change. Do not want them in the same commit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeOfLastImportWhenBigFreakinRowWasSeen = lastMapFileImportTime;
return null;
}

// check to see if one row takes up most of the tablet, in which case we can not split
try {

Expand Down