Skip to content

Commit

Permalink
Bump version to 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol Khurana committed Aug 29, 2022
1 parent b7b2763 commit 9e33f46
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion baseapp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>com.lyft.data</groupId>
<artifactId>prestogateway-parent</artifactId>
<version>1.8.10-SNAPSHOT</version>
<version>1.9.0</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion gateway-ha/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.lyft.data</groupId>
<artifactId>prestogateway-parent</artifactId>
<version>1.8.10-SNAPSHOT</version>
<version>1.9.0</version>
<relativePath>../</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ public void updateRoutingTable(Map<String, Map<String, Integer>> updatedQueueLen
userClusterQueueLengthMap.clear();

if (updatedUserQueueLengthMap != null) {
log.debug("Update user queue sizes:[{}]", updatedUserQueueLengthMap.toString());

for (String user : updatedUserQueueLengthMap.keySet()) {
ConcurrentHashMap<String, Integer> clusterQueueMap =
new ConcurrentHashMap<>(updatedUserQueueLengthMap.get(user));
Expand All @@ -244,7 +242,8 @@ public void updateRoutingTable(Map<String, Map<String, Integer>> updatedQueueLen
int maxQueueLen = Collections.max(updatedQueueLengthMap.get(grp).values());
int minQueueLen = Collections.min(updatedQueueLengthMap.get(grp).values());

if (minQueueLen == maxQueueLen && updatedQueueLengthMap.get(grp).size() > 1) {
if (minQueueLen == maxQueueLen && updatedQueueLengthMap.get(grp).size() > 1
&& updatedRunningLengthMap.containsKey(grp)) {
log.info("Queue lengths equal: {} for all clusters in the group {}."
+ " Falling back to Running Counts : {}", maxQueueLen, grp,
updatedRunningLengthMap.get(grp));
Expand Down Expand Up @@ -312,7 +311,7 @@ public String getEligibleBackEnd(String routingGroup, String user) {
}
// If all clusters have the same queue count, then fallback to the older weighted logic.
if (!Strings.isNullOrEmpty(leastQueuedCluster) && minQueueCount != maxQueueCount) {
log.debug("Routing to:{} with userQueueCount:{}", leastQueuedCluster, minQueueCount);
log.debug("{} routing to:{}. userQueueCount:{}", user, leastQueuedCluster, minQueueCount);

return leastQueuedCluster;
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<artifactId>prestogateway-parent</artifactId>
<name>prestogateway-parent</name>
<packaging>pom</packaging>
<version>1.8.10-SNAPSHOT</version>
<version>1.9.0</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down
2 changes: 1 addition & 1 deletion proxyserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>com.lyft.data</groupId>
<artifactId>prestogateway-parent</artifactId>
<version>1.8.10-SNAPSHOT</version>
<version>1.9.0</version>
<relativePath>../</relativePath>
</parent>

Expand Down

0 comments on commit 9e33f46

Please sign in to comment.