This is an automated email from the ASF dual-hosted git repository.

xiangfu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 95a526e29c Fixing requestId generator bug in PinotBrokerDebug Resource 
(#13716)
95a526e29c is described below

commit 95a526e29cb1cecc6993113ab39aa3709edda83e
Author: Xiang Fu <xiangfu.1...@gmail.com>
AuthorDate: Wed Jul 31 04:32:38 2024 +0800

    Fixing requestId generator bug in PinotBrokerDebug Resource (#13716)
---
 .../java/org/apache/pinot/broker/api/resources/PinotBrokerDebug.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotBrokerDebug.java
 
b/pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotBrokerDebug.java
index 8311b5de87..5c8ce167f6 100644
--- 
a/pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotBrokerDebug.java
+++ 
b/pinot-broker/src/main/java/org/apache/pinot/broker/api/resources/PinotBrokerDebug.java
@@ -84,7 +84,7 @@ import static 
org.apache.pinot.spi.utils.CommonConstants.SWAGGER_AUTHORIZATION_K
 public class PinotBrokerDebug {
 
   // Request ID is passed to the RoutingManager to rotate the selected 
replica-group.
-  private final AtomicLong _requestIdGenerator = new AtomicLong();
+  private final static AtomicLong REQUEST_ID_GENERATOR = new AtomicLong();
 
   @Inject
   private BrokerRoutingManager _routingManager;
@@ -272,7 +272,7 @@ public class PinotBrokerDebug {
   }
 
   private long getRequestId() {
-    return _requestIdGenerator.getAndIncrement();
+    return REQUEST_ID_GENERATOR.getAndIncrement();
   }
 
   @GET


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to