MCPcopy Create free account
hub / github.com/grpc/grpc-java / fail

Method fail

xds/src/main/java/io/grpc/xds/CdsLoadBalancer2.java:219–225  ·  view source on GitHub ↗
(Status error)

Source from the content-addressed store, hash-verified

217 }
218
219 @CheckReturnValue // don't forget to return up the stack after the fail call
220 private Status fail(Status error) {
221 delegate.shutdown();
222 helper.updateBalancingState(
223 TRANSIENT_FAILURE, new FixedResultPicker(PickResult.withError(error)));
224 return Status.OK; // XdsNameResolver isn't a polling NR, so this value doesn't matter
225 }
226
227 private String errorPrefix() {
228 return "CdsLb for " + clusterName + ": ";

Callers 1

Calls 3

withErrorMethod · 0.95
shutdownMethod · 0.65
updateBalancingStateMethod · 0.45

Tested by

no test coverage detected