(Status error)
| 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 + ": "; |
no test coverage detected