HBASE-18235 LoadBalancer.BOGUS_SERVER_NAME should not have a bogus hostname
We deliberately use 'localhost' instead of a bogus hostname for LoadBalancer.BOGUS_SERVER_NAME so the operation will fail fast.
This commit is contained in:
parent
be559f1eb8
commit
ff5d497310
|
@ -52,7 +52,8 @@ import edu.umd.cs.findbugs.annotations.Nullable;
|
|||
public interface LoadBalancer extends Configurable, Stoppable, ConfigurationObserver {
|
||||
|
||||
// Used to signal to the caller that the region(s) cannot be assigned
|
||||
ServerName BOGUS_SERVER_NAME = ServerName.valueOf("bogus.example.com,1,1");
|
||||
// We deliberately use 'localhost' so the operation will fail fast
|
||||
ServerName BOGUS_SERVER_NAME = ServerName.valueOf("localhost,1,1");
|
||||
|
||||
/**
|
||||
* Set the current cluster status. This allows a LoadBalancer to map host name to a server
|
||||
|
|
Loading…
Reference in New Issue