HBASE-10134 Fix findbug warning in VisibilityController
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1550340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1e0185468c
commit
a28881da2d
|
@ -956,11 +956,11 @@ public class VisibilityController extends BaseRegionObserver implements MasterOb
|
||||||
|
|
||||||
private List<String> getSystemAndSuperUsers() throws IOException {
|
private List<String> getSystemAndSuperUsers() throws IOException {
|
||||||
User user = User.getCurrent();
|
User user = User.getCurrent();
|
||||||
LOG.debug("Current user name is "+user.getShortName());
|
|
||||||
if (user == null) {
|
if (user == null) {
|
||||||
throw new IOException("Unable to obtain the current user, "
|
throw new IOException("Unable to obtain the current user, "
|
||||||
+ "authorization checks for internal operations will not work correctly!");
|
+ "authorization checks for internal operations will not work correctly!");
|
||||||
}
|
}
|
||||||
|
LOG.debug("Current user name is "+user.getShortName());
|
||||||
String currentUser = user.getShortName();
|
String currentUser = user.getShortName();
|
||||||
List<String> superUsers = Lists.asList(currentUser,
|
List<String> superUsers = Lists.asList(currentUser,
|
||||||
this.conf.getStrings(AccessControlLists.SUPERUSER_CONF_KEY, new String[0]));
|
this.conf.getStrings(AccessControlLists.SUPERUSER_CONF_KEY, new String[0]));
|
||||||
|
|
Loading…
Reference in New Issue