Abacn commented on code in PR #32442:
URL: https://github.com/apache/beam/pull/32442#discussion_r1759087671


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java:
##########
@@ -1116,51 +1110,12 @@ public Write withMaxOutstandingBytes(long bytes) {
      * always enabled on batch writes and limits the number of outstanding 
requests to the Bigtable
      * server.
      *
-     * <p>When enabled, will also set default {@link 
#withThrottlingReportTargetMs} to 1 minute.
-     * This enables runner react with increased latency in flush call due to 
flow control.
-     *
      * <p>Does not modify this object.
      */
     public Write withFlowControl(boolean enableFlowControl) {
-      BigtableWriteOptions options = getBigtableWriteOptions();
-      BigtableWriteOptions.Builder builder = 
options.toBuilder().setFlowControl(enableFlowControl);
-      if (enableFlowControl) {
-        builder = builder.setThrottlingReportTargetMs(60_000);
-      }
-      return toBuilder().setBigtableWriteOptions(builder.build()).build();
-    }
-
-    /**
-     * Returns a new {@link BigtableIO.Write} with client side latency based 
throttling enabled.
-     *
-     * <p>Will also set {@link #withThrottlingReportTargetMs} to the same 
value.
-     */
-    public Write withThrottlingTargetMs(int throttlingTargetMs) {

Review Comment:
   If the conceptual "binary compatibility" is a concern, I've add back the 
method, but throw instead of no-op or ignore there



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to