@@ -281,7 +281,7 @@ package object config {
281281 private [spark] val LISTENER_BUS_EVENT_QUEUE_CAPACITY =
282282 ConfigBuilder (" spark.scheduler.listenerbus.eventqueue.capacity" )
283283 .intConf
284- .checkValue(_ > 0 , " The capacity of listener bus event queue must not be negative " )
284+ .checkValue(_ > 0 , " The capacity of listener bus event queue must be positive " )
285285 .createWithDefault(10000 )
286286
287287 private [spark] val LISTENER_BUS_METRICS_MAX_LISTENER_CLASSES_TIMED =
@@ -430,8 +430,8 @@ package object config {
430430 .doc(" The chunk size in bytes during writing out the bytes of ChunkedByteBuffer." )
431431 .bytesConf(ByteUnit .BYTE )
432432 .checkValue(_ <= ByteArrayMethods .MAX_ROUNDED_ARRAY_LENGTH ,
433- " The chunk size during writing out the bytes of" +
434- " ChunkedByteBuffer should not larger than Int.MaxValue - 15 ." )
433+ " The chunk size during writing out the bytes of ChunkedByteBuffer should " +
434+ s " be less than or equal to ${ ByteArrayMethods . MAX_ROUNDED_ARRAY_LENGTH } . " )
435435 .createWithDefault(64 * 1024 * 1024 )
436436
437437 private [spark] val CHECKPOINT_COMPRESS =
@@ -503,7 +503,7 @@ package object config {
503503 " made in creating intermediate shuffle files." )
504504 .bytesConf(ByteUnit .KiB )
505505 .checkValue(v => v > 0 && v <= ByteArrayMethods .MAX_ROUNDED_ARRAY_LENGTH / 1024 ,
506- s " The file buffer size must be greater than 0 and less than " +
506+ s " The file buffer size must be positive and less than or equal to " +
507507 s " ${ByteArrayMethods .MAX_ROUNDED_ARRAY_LENGTH / 1024 }. " )
508508 .createWithDefaultString(" 32k" )
509509
@@ -513,7 +513,7 @@ package object config {
513513 " is written in unsafe shuffle writer. In KiB unless otherwise specified." )
514514 .bytesConf(ByteUnit .KiB )
515515 .checkValue(v => v > 0 && v <= ByteArrayMethods .MAX_ROUNDED_ARRAY_LENGTH / 1024 ,
516- s " The buffer size must be greater than 0 and less than " +
516+ s " The buffer size must be positive and less than or equal to " +
517517 s " ${ByteArrayMethods .MAX_ROUNDED_ARRAY_LENGTH / 1024 }. " )
518518 .createWithDefaultString(" 32k" )
519519
0 commit comments