Source:
<code>private static RetryOptions createRetryOptions(Configuration configuration) { RetryOptions.Builder retryOptionsBuilder = new RetryOptions.Builder(); boolean enableRetries = configuration.getBoolean( ENABLE_GRPC_RETRIES_KEY, RetryOptions.ENABLE_GRPC_RETRIES_DEFAULT); LOG.debug("gRPC retries enabled: %s", enableRetries); retryOptionsBuilder.setEnableRetries(enableRetries); boolean retryOnDeadlineExceeded = configuration.getBoolean( ENABLE_GRPC_RETRY_DEADLINEEXCEEDED_KEY, RetryOptions.ENABLE_GRPC_RETRY_DEADLINE_EXCEEDED_DEFAULT); LOG.debug("gRPC retry on deadline exceeded enabled: %s", retryOnDeadlineExceeded); retryOptionsBuilder.setRetryOnDeadlineExceeded(retryOnDeadlineExceeded); int maxElapsedBackoffMillis = configuration.getInt( MAX_ELAPSED_BACKOFF_MILLIS_KEY, RetryOptions.DEFAULT_MAX_ELAPSED_BACKOFF_MILLIS); LOG.debug("gRPC retry maxElapsedBackoffMillis: %d", maxElapsedBackoffMillis); retryOptionsBuilder.setMaxElapsedBackoffMillis(maxElapsedBackoffMillis); int readPartialRowTimeoutMillis = configuration.getInt( READ_PARTIAL_ROW_TIMEOUT_MS, RetryOptions.DEFAULT_READ_PARTIAL_ROW_TIMEOUT_MS); LOG.debug("gRPC read partial row timeout (millis): %d", readPartialRowTimeoutMillis); retryOptionsBuilder.setReadPartialRowTimeoutMillis(readPartialRowTimeoutMillis); int streamingBufferSize = configuration.getInt( READ_BUFFER_SIZE, RetryOptions.DEFAULT_STREAMING_BUFFER_SIZE); <START> System.out.println("stream buffer size: " + streamingBufferSize); <END> LOG.info("gRPC read buffer size (count): %d", streamingBufferSize); retryOptionsBuilder.setStreamingBufferSize(streamingBufferSize); int streamingBatchSize = configuration.getInt( READ_BATCH_SIZE, RetryOptions.DEFAULT_STREAMING_BATCH_SIZE); System.out.println("stream batch size: " + streamingBatchSize); LOG.info("gRPC read batch size (count): %d", streamingBatchSize); retryOptionsBuilder.setStreamingBatchSize(streamingBatchSize); return retryOptionsBuilder.build(); }</code><technical_language>remove system.out</technical_language>

Target:
private static RetryOptions createRetryOptions(Configuration configuration) { RetryOptions.Builder retryOptionsBuilder = new RetryOptions.Builder(); boolean enableRetries = configuration.getBoolean( ENABLE_GRPC_RETRIES_KEY, RetryOptions.ENABLE_GRPC_RETRIES_DEFAULT); LOG.debug("gRPC retries enabled: %s", enableRetries); retryOptionsBuilder.setEnableRetries(enableRetries); boolean retryOnDeadlineExceeded = configuration.getBoolean( ENABLE_GRPC_RETRY_DEADLINEEXCEEDED_KEY, RetryOptions.ENABLE_GRPC_RETRY_DEADLINE_EXCEEDED_DEFAULT); LOG.debug("gRPC retry on deadline exceeded enabled: %s", retryOnDeadlineExceeded); retryOptionsBuilder.setRetryOnDeadlineExceeded(retryOnDeadlineExceeded); int maxElapsedBackoffMillis = configuration.getInt( MAX_ELAPSED_BACKOFF_MILLIS_KEY, RetryOptions.DEFAULT_MAX_ELAPSED_BACKOFF_MILLIS); LOG.debug("gRPC retry maxElapsedBackoffMillis: %d", maxElapsedBackoffMillis); retryOptionsBuilder.setMaxElapsedBackoffMillis(maxElapsedBackoffMillis); int readPartialRowTimeoutMillis = configuration.getInt( READ_PARTIAL_ROW_TIMEOUT_MS, RetryOptions.DEFAULT_READ_PARTIAL_ROW_TIMEOUT_MS); LOG.debug("gRPC read partial row timeout (millis): %d", readPartialRowTimeoutMillis); retryOptionsBuilder.setReadPartialRowTimeoutMillis(readPartialRowTimeoutMillis); int streamingBufferSize = configuration.getInt( READ_BUFFER_SIZE, RetryOptions.DEFAULT_STREAMING_BUFFER_SIZE); LOG.debug("gRPC read buffer size (count): %d", streamingBufferSize); retryOptionsBuilder.setStreamingBufferSize(streamingBufferSize); int streamingBatchSize = configuration.getInt( READ_BATCH_SIZE, RetryOptions.DEFAULT_STREAMING_BATCH_SIZE); LOG.debug("gRPC read batch size (count): %d", streamingBatchSize); retryOptionsBuilder.setStreamingBatchSize(streamingBatchSize); return retryOptionsBuilder.build(); }