Skip to content

Commit a2f631d

Browse files
committed
Feedback
1 parent 2ff349b commit a2f631d

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/scala/org/apache/spark/internal/config

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/internal/config/package.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ package object config {
190190
ConfigBuilder("spark.eventLog.rolling.maxFileSize")
191191
.doc("The max size of event log file to be rolled over.")
192192
.bytesConf(ByteUnit.BYTE)
193-
.checkValue(_ >= (1024 * 1024 * 10), "Max file size of event log should be configured to" +
194-
" be at least 10 MiB.")
193+
.checkValue(_ >= ByteUnit.MiB.toBytes(10), "Max file size of event log should be " +
194+
"configured to be at least 10 MiB.")
195195
.createWithDefaultString("128m")
196196

197197
private[spark] val EXECUTOR_ID =

0 commit comments

Comments
 (0)