@@ -253,22 +253,24 @@ public class ConfigOptions {
253253 + SERVER_BUFFER_MEMORY_SIZE .key ()
254254 + "')." );
255255
256- // noDefaultValue() leads to NPE in some code parts, hence we default to 0b
257256 public static final ConfigOption <MemorySize > SERVER_BUFFER_PER_REQUEST_MEMORY_SIZE =
258257 key ("server.buffer.per-request-memory-size" )
259258 .memoryType ()
260- .defaultValue (MemorySize .parse ("0b " ))
259+ .defaultValue (MemorySize .parse ("16mb " ))
261260 .withDescription (
262- "The minimum number of bytes that will be allocated by the writer rounded down to the closest multiple of "
261+ "The minimum number of bytes that will be allocated by the writer rounded down to the closes multiple of "
263262 + SERVER_BUFFER_PAGE_SIZE .key ()
264- + " (but at least one page). This option allows to allocate memory in batches to have better CPU-cached friendliness due to contiguous segments." );
263+ + "It must be greater than or equal to "
264+ + SERVER_BUFFER_PAGE_SIZE .key ()
265+ + ". "
266+ + "This option allows to allocate memory in batches to have better CPU-cached friendliness due to contiguous segments." );
265267
266- public static final ConfigOption <Long > SERVER_BUFFER_POOL_WAIT_TIMEOUT =
268+ public static final ConfigOption <Duration > SERVER_BUFFER_POOL_WAIT_TIMEOUT =
267269 key ("server.buffer.wait-timeout" )
268- .longType ()
269- .defaultValue (Long .MAX_VALUE )
270+ .durationType ()
271+ .defaultValue (Duration . ofMillis ( Long .MAX_VALUE ) )
270272 .withDescription (
271- "Defines how long the buffer pool will block when waiting for segments to become available in ms ." );
273+ "Defines how long the buffer pool will block when waiting for segments to become available." );
272274
273275 // ------------------------------------------------------------------
274276 // ZooKeeper Settings
@@ -630,30 +632,32 @@ public class ConfigOptions {
630632 + CLIENT_WRITER_BUFFER_MEMORY_SIZE .key ()
631633 + "')." );
632634
633- public static final ConfigOption <MemorySize > CLIENT_WRITER_BATCH_SIZE =
634- key ("client.writer.batch-size" )
635- .memoryType ()
636- .defaultValue (MemorySize .parse ("2mb" ))
637- .withDescription (
638- "The writer or walBuilder will attempt to batch records together into one batch for"
639- + " the same bucket. This helps performance on both the client and the server." );
640-
641- // noDefaultValue() leads to NPE in some code parts, hence we default to 0b
642635 public static final ConfigOption <MemorySize > CLIENT_WRITER_PER_REQUEST_MEMORY_SIZE =
643- key ("client.writer.per-request-memory-size" )
636+ key ("client.writer.buffer. per-request-memory-size" )
644637 .memoryType ()
645- .defaultValue (MemorySize .parse ("0b " ))
638+ .defaultValue (MemorySize .parse ("16mb " ))
646639 .withDescription (
647640 "The minimum number of bytes that will be allocated by the writer rounded down to the closes multiple of "
648641 + CLIENT_WRITER_BUFFER_PAGE_SIZE .key ()
649- + " (but at least one page). This option allows to allocate memory in batches to have better CPU-cached friendliness due to contiguous segments." );
642+ + "It must be greater than or equal to "
643+ + CLIENT_WRITER_BUFFER_PAGE_SIZE .key ()
644+ + ". "
645+ + "This option allows to allocate memory in batches to have better CPU-cached friendliness due to contiguous segments." );
650646
651- public static final ConfigOption <Long > CLIENT_WRITER_WAIT_TIMEOUT =
652- key ("client.writer.wait-timeout" )
653- .longType ()
654- .defaultValue (Long .MAX_VALUE )
647+ public static final ConfigOption <Duration > CLIENT_WRITER_BUFFER_WAIT_TIMEOUT =
648+ key ("client.writer.buffer. wait-timeout" )
649+ .durationType ()
650+ .defaultValue (Duration . ofMillis ( Long .MAX_VALUE ) )
655651 .withDescription (
656- "Defines how long the writer will block when waiting for segments to become available in ms." );
652+ "Defines how long the writer will block when waiting for segments to become available." );
653+
654+ public static final ConfigOption <MemorySize > CLIENT_WRITER_BATCH_SIZE =
655+ key ("client.writer.batch-size" )
656+ .memoryType ()
657+ .defaultValue (MemorySize .parse ("2mb" ))
658+ .withDescription (
659+ "The writer or walBuilder will attempt to batch records together into one batch for"
660+ + " the same bucket. This helps performance on both the client and the server." );
657661
658662 public static final ConfigOption <Duration > CLIENT_WRITER_BATCH_TIMEOUT =
659663 key ("client.writer.batch-timeout" )
0 commit comments