Skip to content

Commit

Permalink
fix obscure bug ingesting a file with 100 empty rows at the start
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Cuddihy committed Mar 1, 2021
1 parent 844dd3d commit 16c7572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ private int runIngestionThreads(boolean skipIngest, boolean skipCheck, String ex
}

// if there is a cacheSei, make sure it isn't getting too large
if (!skipIngest && this.cacheSei != null) {
if (!skipIngest && this.cacheSei != null && this.cacheSei.dumpToTurtle().length() > 0) {
// after 100 rows, guess a good place to upload
if (dumpCacheRowInterval == 0 && startingRow > 100) {
long testSize = this.cacheSei.dumpToTurtle().length();
Expand Down

0 comments on commit 16c7572

Please sign in to comment.