You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by dh...@apache.org on 2016/04/05 00:25:02 UTC

[1/2] incubator-beam git commit: IntervalBoundedExponentialBackOff: add deprecated copy of old API

Repository: incubator-beam
Updated Branches:
  refs/heads/master d75e9df50 -> ac314eefd


IntervalBoundedExponentialBackOff: add deprecated copy of old API

This fixes a bug submitting jobs to Google Cloud Dataflow service.


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/c4862c0e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/c4862c0e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/c4862c0e

Branch: refs/heads/master
Commit: c4862c0ea08b664c55a885b64039f4a4be16022a
Parents: d75e9df
Author: Dan Halperin <dh...@google.com>
Authored: Mon Apr 4 14:40:00 2016 -0700
Committer: Dan Halperin <dh...@google.com>
Committed: Mon Apr 4 15:24:43 2016 -0700

----------------------------------------------------------------------
 .../dataflow/sdk/util/IntervalBoundedExponentialBackOff.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/c4862c0e/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/util/IntervalBoundedExponentialBackOff.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/util/IntervalBoundedExponentialBackOff.java b/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/util/IntervalBoundedExponentialBackOff.java
index 51ff9f2..206c83b 100644
--- a/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/util/IntervalBoundedExponentialBackOff.java
+++ b/sdks/java/core/src/main/java/com/google/cloud/dataflow/sdk/util/IntervalBoundedExponentialBackOff.java
@@ -54,6 +54,12 @@ public class IntervalBoundedExponentialBackOff implements BackOff {
   private final long initialIntervalMillis;
   private int currentAttempt;
 
+  // BEAM-168: https://issues.apache.org/jira/browse/BEAM-168
+  @Deprecated
+  public IntervalBoundedExponentialBackOff(int maximumIntervalMillis, long initialIntervalMillis) {
+    this((long) maximumIntervalMillis, initialIntervalMillis);
+  }
+
   public IntervalBoundedExponentialBackOff(long maximumIntervalMillis, long initialIntervalMillis) {
     Preconditions.checkArgument(
         maximumIntervalMillis > 0, "Maximum interval must be greater than zero.");


[2/2] incubator-beam git commit: Closes #117

Posted by dh...@apache.org.
Closes #117


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/ac314eef
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/ac314eef
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/ac314eef

Branch: refs/heads/master
Commit: ac314eefd15b1e86a29799547d08c0f832377887
Parents: d75e9df c4862c0
Author: Dan Halperin <dh...@google.com>
Authored: Mon Apr 4 15:24:44 2016 -0700
Committer: Dan Halperin <dh...@google.com>
Committed: Mon Apr 4 15:24:44 2016 -0700

----------------------------------------------------------------------
 .../dataflow/sdk/util/IntervalBoundedExponentialBackOff.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------