Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ public static CloudBigtableScanConfiguration buildExportConfig(ExportOptions opt
BigtableOptionsFactory.BIGTABLE_READ_RPC_ATTEMPT_TIMEOUT_MS_KEY,
options.getBigtableReadRpcAttemptTimeoutMs());
}
if (options.getBigtableMaxAttempts() != null) {
configBuilder.withConfiguration(
BigtableOptionsFactory.MAX_SCAN_TIMEOUT_RETRIES, options.getBigtableMaxAttempts());
}
return configBuilder.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ public interface ExportOptions extends GcpOptions, GcsOptions {

@SuppressWarnings("unused")
void setBigtableReadRpcAttemptTimeoutMs(ValueProvider<String> readRpcAttemptTimeoutMs);

@Description("The maximum number of retry attempts for the Bigtable client.")
ValueProvider<String> getBigtableMaxAttempts();

@SuppressWarnings("unused")
void setBigtableMaxAttempts(ValueProvider<String> maxAttempts);
}

public static void main(String[] args) {
Expand Down
Loading