(hbase) branch branch-2 updated: HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831)
This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch branch-2 in repository https://gitbox.apache.org/repos/asf/hbase.git The following commit(s) were added to refs/heads/branch-2 by this push: new 788a1392fbd HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) 788a1392fbd is described below commit 788a1392fbd62b14f7a9605730c6533a004db8e4 Author: Istvan Toth AuthorDate: Wed Apr 17 14:48:00 2024 +0200 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) --- .../src/main/java/org/apache/hadoop/hbase/rest/client/Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java index 96cb5f290b0..abf00f938c9 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java @@ -35,6 +35,7 @@ import java.util.Collections; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ThreadLocalRandom; import javax.net.ssl.SSLContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; @@ -270,7 +271,7 @@ public class Client { throw new IOException("Cluster is empty"); } if (lastNodeId == null || !sticky) { - lastNodeId = (int) (cluster.nodes.size() * Math.random()); + lastNodeId = ThreadLocalRandom.current().nextInt(cluster.nodes.size()); } int start = lastNodeId; do {
(hbase) branch master updated: HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831)
This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hbase.git The following commit(s) were added to refs/heads/master by this push: new d7f9ba65487 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) d7f9ba65487 is described below commit d7f9ba6548734f2e1666d6232dc2c775df316272 Author: Istvan Toth AuthorDate: Wed Apr 17 14:48:00 2024 +0200 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) --- .../src/main/java/org/apache/hadoop/hbase/rest/client/Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java index 96cb5f290b0..abf00f938c9 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java @@ -35,6 +35,7 @@ import java.util.Collections; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ThreadLocalRandom; import javax.net.ssl.SSLContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; @@ -270,7 +271,7 @@ public class Client { throw new IOException("Cluster is empty"); } if (lastNodeId == null || !sticky) { - lastNodeId = (int) (cluster.nodes.size() * Math.random()); + lastNodeId = ThreadLocalRandom.current().nextInt(cluster.nodes.size()); } int start = lastNodeId; do {
(hbase) branch branch-3 updated: HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831)
This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch branch-3 in repository https://gitbox.apache.org/repos/asf/hbase.git The following commit(s) were added to refs/heads/branch-3 by this push: new 244b0c8e9b4 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) 244b0c8e9b4 is described below commit 244b0c8e9b43dab93c98061b15146f33b4fa5c62 Author: Istvan Toth AuthorDate: Wed Apr 17 14:48:00 2024 +0200 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) --- .../src/main/java/org/apache/hadoop/hbase/rest/client/Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java index 96cb5f290b0..abf00f938c9 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java @@ -35,6 +35,7 @@ import java.util.Collections; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ThreadLocalRandom; import javax.net.ssl.SSLContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; @@ -270,7 +271,7 @@ public class Client { throw new IOException("Cluster is empty"); } if (lastNodeId == null || !sticky) { - lastNodeId = (int) (cluster.nodes.size() * Math.random()); + lastNodeId = ThreadLocalRandom.current().nextInt(cluster.nodes.size()); } int start = lastNodeId; do {
(hbase) branch branch-2.4 updated: HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831)
This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch branch-2.4 in repository https://gitbox.apache.org/repos/asf/hbase.git The following commit(s) were added to refs/heads/branch-2.4 by this push: new b7e224156d8 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) b7e224156d8 is described below commit b7e224156d80a9f2f8aa4a2f0ec895bba7db8b78 Author: Istvan Toth AuthorDate: Wed Apr 17 14:48:00 2024 +0200 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) --- .../src/main/java/org/apache/hadoop/hbase/rest/client/Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java index 295d5bc1343..f1f01a7cc2d 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java @@ -35,6 +35,7 @@ import java.util.Collections; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ThreadLocalRandom; import javax.net.ssl.SSLContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; @@ -269,7 +270,7 @@ public class Client { throw new IOException("Cluster is empty"); } if (lastNodeId == null || !sticky) { - lastNodeId = (int) (cluster.nodes.size() * Math.random()); + lastNodeId = ThreadLocalRandom.current().nextInt(cluster.nodes.size()); } int start = lastNodeId; do {
(hbase) branch branch-2.6 updated: HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831)
This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch branch-2.6 in repository https://gitbox.apache.org/repos/asf/hbase.git The following commit(s) were added to refs/heads/branch-2.6 by this push: new 5b12a409eec HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) 5b12a409eec is described below commit 5b12a409eecb17e87b56ebe0e0cb927930cbc2d3 Author: Istvan Toth AuthorDate: Wed Apr 17 14:48:00 2024 +0200 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) --- .../src/main/java/org/apache/hadoop/hbase/rest/client/Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java index 96cb5f290b0..abf00f938c9 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java @@ -35,6 +35,7 @@ import java.util.Collections; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ThreadLocalRandom; import javax.net.ssl.SSLContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; @@ -270,7 +271,7 @@ public class Client { throw new IOException("Cluster is empty"); } if (lastNodeId == null || !sticky) { - lastNodeId = (int) (cluster.nodes.size() * Math.random()); + lastNodeId = ThreadLocalRandom.current().nextInt(cluster.nodes.size()); } int start = lastNodeId; do {
(hbase) branch branch-2.5 updated: HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831)
This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch branch-2.5 in repository https://gitbox.apache.org/repos/asf/hbase.git The following commit(s) were added to refs/heads/branch-2.5 by this push: new 5ddfd08b333 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) 5ddfd08b333 is described below commit 5ddfd08b3338877df01337bfe23859b71a6a7809 Author: Istvan Toth AuthorDate: Wed Apr 17 14:48:00 2024 +0200 HBASE-28500 Rest Java client library assumes stateless servers (Addendum:fix spotbugs warning) (#5831) --- .../src/main/java/org/apache/hadoop/hbase/rest/client/Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java index 96cb5f290b0..abf00f938c9 100644 --- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java +++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/client/Client.java @@ -35,6 +35,7 @@ import java.util.Collections; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ThreadLocalRandom; import javax.net.ssl.SSLContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; @@ -270,7 +271,7 @@ public class Client { throw new IOException("Cluster is empty"); } if (lastNodeId == null || !sticky) { - lastNodeId = (int) (cluster.nodes.size() * Math.random()); + lastNodeId = ThreadLocalRandom.current().nextInt(cluster.nodes.size()); } int start = lastNodeId; do {
(hbase-site) branch asf-site updated: INFRA-10751 Empty commit
This is an automated email from the ASF dual-hosted git repository. git-site-role pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/hbase-site.git The following commit(s) were added to refs/heads/asf-site by this push: new cafafa6ab40 INFRA-10751 Empty commit cafafa6ab40 is described below commit cafafa6ab40166905dc36b14f44871bc6afd5ebd Author: jenkins AuthorDate: Wed Apr 17 14:45:40 2024 + INFRA-10751 Empty commit