Skip to content

Commit

Permalink
correct where to increment the clusterNotFound count and adjust quara…
Browse files Browse the repository at this point in the history
…ntine log level (#950)
  • Loading branch information
bohhyang authored Dec 7, 2023
1 parent 668bff9 commit e949cf1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ and what APIs have changed, if applicable.

## [Unreleased]

## [29.48.4] - 2023-12-06
- correct where to increment the clusterNotFound count and adjust quarantine log level

## [29.48.3] - 2023-11-28
- Add standardized models for cursor based pagination

Expand Down Expand Up @@ -5572,7 +5575,8 @@ patch operations can re-use these classes for generating patch messages.

## [0.14.1]

[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.48.3...master
[Unreleased]: https://github.com/linkedin/rest.li/compare/v29.48.4...master
[29.48.4]: https://github.com/linkedin/rest.li/compare/v29.48.3...v29.48.4
[29.48.3]: https://github.com/linkedin/rest.li/compare/v29.48.2...v29.48.3
[29.48.2]: https://github.com/linkedin/rest.li/compare/v29.48.1...v29.48.2
[29.48.1]: https://github.com/linkedin/rest.li/compare/v29.48.0...v29.48.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,6 @@ public void getLoadBalancedClusterAndUriProperties(String clusterName,
@Override
public void onError(Throwable e)
{
_clusterNotFoundStats.inc();
finalCallback.onError(new ServiceUnavailableException(clusterName, "PEGA_1011. " + e.getMessage(), e));
}

Expand Down Expand Up @@ -849,6 +848,7 @@ public void getLoadBalancedClusterAndUriProperties(String clusterName, boolean w
{
warn(_log, "unable to find cluster: ", clusterName);

_clusterNotFoundStats.inc();
die(pairCallback, clusterName, "PEGA_1012. no cluster properties in lb state");
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,10 @@ public boolean checkUpdateQuarantineState()
// Nothing to do for now. Just keep waiting
if (_timeTilNextCheck > ERROR_REPORT_PERIOD)
{
_rateLimitedLogger.error("Client {} for service {} is being kept in quarantine for {} seconds, "
+ "Please check to make sure it is healthy", _trackerClient.getUri(), _serviceName, (1.0 *_timeTilNextCheck / 1000));
_rateLimitedLogger.info("Host {} for service {} is being kept in quarantine for {} seconds, "
+ "This is a capacity loss and could potentially cause availability issue. Please contact the service owner to"
+ " make sure the host is healthy, if needed", _trackerClient.getUri(), _serviceName,
(1.0 *_timeTilNextCheck / 1000));
}
break;
case SUCCESS:
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=29.48.3
version=29.48.4
group=com.linkedin.pegasus
org.gradle.configureondemand=true
org.gradle.parallel=true
Expand Down

0 comments on commit e949cf1

Please sign in to comment.