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:
Andrew Purtell 2017-06-21 14:37:47 -07:00
parent be559f1eb8
commit ff5d497310
1 changed files with 2 additions and 1 deletions

View File

@ -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