You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by ka...@apache.org on 2017/03/09 05:16:03 UTC
[1/3] storm git commit: STORM-2400 Upgraded Curator to 2.12.0 and
made respective API changes
Repository: storm
Updated Branches:
refs/heads/1.x-branch 93e23564b -> 4b0f24ffb
STORM-2400 Upgraded Curator to 2.12.0 and made respective API changes
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/cbb66b49
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/cbb66b49
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/cbb66b49
Branch: refs/heads/1.x-branch
Commit: cbb66b4929e8ad7edd7e5dfdbed9bab6adf1db6e
Parents: 93e2356
Author: Satish Duggana <sd...@hortonworks.com>
Authored: Wed Mar 8 10:24:25 2017 +0530
Committer: Jungtaek Lim <ka...@gmail.com>
Committed: Thu Mar 9 14:05:30 2017 +0900
----------------------------------------------------------------------
pom.xml | 2 +-
.../jvm/org/apache/storm/security/auth/TBackoffConnect.java | 4 ++--
.../storm/utils/StormBoundedExponentialBackoffRetry.java | 6 +++---
.../storm/utils/StormBoundedExponentialBackoffRetryTest.java | 6 +++---
4 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/cbb66b49/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index da2b555..a6c85d6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -220,7 +220,7 @@
<commons-codec.version>1.6</commons-codec.version>
<commons-cli.version>1.3.1</commons-cli.version>
<clj-time.version>0.8.0</clj-time.version>
- <curator.version>2.10.0</curator.version>
+ <curator.version>2.12.0</curator.version>
<json-simple.version>1.1</json-simple.version>
<ring.version>1.3.1</ring.version>
<ring-json.version>0.3.1</ring-json.version>
http://git-wip-us.apache.org/repos/asf/storm/blob/cbb66b49/storm-core/src/jvm/org/apache/storm/security/auth/TBackoffConnect.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/org/apache/storm/security/auth/TBackoffConnect.java b/storm-core/src/jvm/org/apache/storm/security/auth/TBackoffConnect.java
index 0ca9ead..db15d7f 100644
--- a/storm-core/src/jvm/org/apache/storm/security/auth/TBackoffConnect.java
+++ b/storm-core/src/jvm/org/apache/storm/security/auth/TBackoffConnect.java
@@ -64,9 +64,9 @@ public class TBackoffConnect {
throw new RuntimeException(ex);
}
try {
- int sleeptime = waitGrabber.getSleepTimeMs(_completedRetries, 0);
+ long sleeptime = waitGrabber.getSleepTimeMs(_completedRetries, 0);
- LOG.debug("Failed to connect. Retrying... (" + Integer.toString( _completedRetries) + ") in " + Integer.toString(sleeptime) + "ms");
+ LOG.debug("Failed to connect. Retrying... (" + Integer.toString( _completedRetries) + ") in " + Long.toString(sleeptime) + "ms");
Thread.sleep(sleeptime);
} catch (InterruptedException e) {
http://git-wip-us.apache.org/repos/asf/storm/blob/cbb66b49/storm-core/src/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetry.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetry.java b/storm-core/src/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetry.java
index 33c2c1b..f108194 100644
--- a/storm-core/src/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetry.java
+++ b/storm-core/src/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetry.java
@@ -61,16 +61,16 @@ public class StormBoundedExponentialBackoffRetry extends BoundedExponentialBacko
}
@Override
- public int getSleepTimeMs(int retryCount, long elapsedTimeMs) {
+ public long getSleepTimeMs(int retryCount, long elapsedTimeMs) {
if (retryCount < expRetriesThreshold) {
int exp = 1 << retryCount;
int jitter = random.nextInt(exp);
- int sleepTimeMs = super.getBaseSleepTimeMs() + exp + jitter;
+ long sleepTimeMs = super.getBaseSleepTimeMs() + exp + jitter;
LOG.warn("WILL SLEEP FOR {}ms (NOT MAX)", sleepTimeMs);
return sleepTimeMs;
} else {
int stepJitter = random.nextInt(stepSize);
- int sleepTimeMs = Math.min(super.getMaxSleepTimeMs(), (linearBaseSleepMs +
+ long sleepTimeMs = Math.min(super.getMaxSleepTimeMs(), (linearBaseSleepMs +
(stepSize * (retryCount - expRetriesThreshold)) + stepJitter));
LOG.warn("WILL SLEEP FOR {}ms (MAX)", sleepTimeMs);
return sleepTimeMs;
http://git-wip-us.apache.org/repos/asf/storm/blob/cbb66b49/storm-core/test/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetryTest.java
----------------------------------------------------------------------
diff --git a/storm-core/test/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetryTest.java b/storm-core/test/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetryTest.java
index ddddc5f..b0230da 100644
--- a/storm-core/test/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetryTest.java
+++ b/storm-core/test/jvm/org/apache/storm/utils/StormBoundedExponentialBackoffRetryTest.java
@@ -69,11 +69,11 @@ public class StormBoundedExponentialBackoffRetryTest extends TestCase {
private void validateSleepTimes(int baseSleepMs, int maxSleepMs, int maxRetries) {
StormBoundedExponentialBackoffRetry retryPolicy = new StormBoundedExponentialBackoffRetry(baseSleepMs, maxSleepMs, maxRetries);
int retryCount = 0;
- int prevSleepMs = 0;
+ long prevSleepMs = 0;
LOG.info("The baseSleepMs [" + baseSleepMs + "] the maxSleepMs [" + maxSleepMs +
"] the maxRetries [" + maxRetries + "]");
while (retryCount <= maxRetries) {
- int currSleepMs = retryPolicy.getSleepTimeMs(retryCount, 0);
+ long currSleepMs = retryPolicy.getSleepTimeMs(retryCount, 0);
LOG.info("For retryCount [" + retryCount + "] the previousSleepMs [" + prevSleepMs +
"] the currentSleepMs [" + currSleepMs + "]");
assertTrue("For retryCount [" + retryCount + "] the previousSleepMs [" + prevSleepMs +
@@ -89,7 +89,7 @@ public class StormBoundedExponentialBackoffRetryTest extends TestCase {
retryCount++;
}
int badRetryCount = maxRetries + 10;
- int currSleepMs = retryPolicy.getSleepTimeMs(badRetryCount, 0);
+ long currSleepMs = retryPolicy.getSleepTimeMs(badRetryCount, 0);
LOG.info("For badRetryCount [" + badRetryCount + "] the previousSleepMs [" + prevSleepMs +
"] the currentSleepMs [" + currSleepMs + "]");
assertTrue("For the badRetryCount [" + badRetryCount + "] that's greater than maxRetries [" +
[2/3] storm git commit: Merge branch 'STORM-2400-1.x-merge' into
1.x-branch
Posted by ka...@apache.org.
Merge branch 'STORM-2400-1.x-merge' into 1.x-branch
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/74f79c3c
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/74f79c3c
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/74f79c3c
Branch: refs/heads/1.x-branch
Commit: 74f79c3cc6bd46241078445a91a92c67288127ac
Parents: 93e2356 cbb66b4
Author: Jungtaek Lim <ka...@gmail.com>
Authored: Thu Mar 9 14:05:35 2017 +0900
Committer: Jungtaek Lim <ka...@gmail.com>
Committed: Thu Mar 9 14:05:35 2017 +0900
----------------------------------------------------------------------
pom.xml | 2 +-
.../jvm/org/apache/storm/security/auth/TBackoffConnect.java | 4 ++--
.../storm/utils/StormBoundedExponentialBackoffRetry.java | 6 +++---
.../storm/utils/StormBoundedExponentialBackoffRetryTest.java | 6 +++---
4 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
[3/3] storm git commit: STORM-2400: CHANGELOG
Posted by ka...@apache.org.
STORM-2400: CHANGELOG
Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/4b0f24ff
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/4b0f24ff
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/4b0f24ff
Branch: refs/heads/1.x-branch
Commit: 4b0f24ffbdb3c632d2b47fcfdabfbbaf0bfc645e
Parents: 74f79c3
Author: Jungtaek Lim <ka...@gmail.com>
Authored: Thu Mar 9 14:15:44 2017 +0900
Committer: Jungtaek Lim <ka...@gmail.com>
Committed: Thu Mar 9 14:15:44 2017 +0900
----------------------------------------------------------------------
CHANGELOG.md | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/storm/blob/4b0f24ff/CHANGELOG.md
----------------------------------------------------------------------
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ba6c6e0..631919d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
\ufeff## 1.1.0
+ * STORM-2400: Upgraded Curator to 2.12.0 and made respective API changes
* STORM-2396: setting interrupted status back before throwing a RuntimeException
* STORM-1772: Adding Perf module with topologies for measuring performance
* STORM-2395: storm.cmd supervisor calls the wrong class name