Skip to content

Commit

Permalink
Make the maximum buffer size 9.5 MB instead of 10 MB to prevent errors.
Browse files Browse the repository at this point in the history
Fixes: #267
  • Loading branch information
dpcollins-google committed Apr 30, 2021
1 parent d15d147 commit 2f4b044
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class CloudPubSubSinkConnector extends SinkConnector {
public static final String MAX_TOTAL_TIMEOUT_MS = "maxTotalTimeoutMs";
public static final String MAX_SHUTDOWN_TIMEOUT_MS = "maxShutdownTimeoutMs";
public static final int DEFAULT_MAX_BUFFER_SIZE = 100;
public static final long DEFAULT_MAX_BUFFER_BYTES = 10000000L;
public static final long DEFAULT_MAX_BUFFER_BYTES = 9500000L;
public static final int DEFAULT_DELAY_THRESHOLD_MS = 100;
public static final int DEFAULT_REQUEST_TIMEOUT_MS = 10000;
public static final int DEFAULT_TOTAL_TIMEOUT_MS = 60000;
Expand Down

0 comments on commit 2f4b044

Please sign in to comment.