Skip to content

Commit

Permalink
[SPARK-36147][SQL] Warn if less files visible after stats write in Ba…
Browse files Browse the repository at this point in the history
…sicWriteStatsTracker

### What changes were proposed in this pull request?

This log should at least be WARN not INFO (in org/apache/spark/sql/execution/datasources/BasicWriteStatsTracker.scala )
"Expected $numSubmittedFiles files, but only saw $numFiles."

### Why are the changes needed?

INFO logs don't indicate possible issue but WARN logs should

### Does this PR introduce any user-facing change?

Yes, Log level changed.

### How was this patch tested?

manual, trivial change

Closes #33332 from tooptoop4/warn.

Authored-by: tooptoop4 <33283496+tooptoop4@users.noreply.github.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
tooptoop4 authored and HyukjinKwon committed Aug 19, 2021
1 parent f2e593b commit 2fc9c0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class BasicWriteTaskStatsTracker(
}

if (numSubmittedFiles != numFiles) {
logInfo(s"Expected $numSubmittedFiles files, but only saw $numFiles. " +
logWarning(s"Expected $numSubmittedFiles files, but only saw $numFiles. " +
"This could be due to the output format not writing empty files, " +
"or files being not immediately visible in the filesystem.")
}
Expand Down

0 comments on commit 2fc9c0b

Please sign in to comment.