Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,9 @@ public int run(String[] strings) throws Exception {
} else {
setupServer();
}
serviceUGI.doAs(new PrivilegedAction<Object>() {
return serviceUGI.doAs(new PrivilegedAction<Integer>() {
@Override
public Object run() {
public Integer run() {
try {
startInfoServer();
if (httpEnabled) {
Expand All @@ -844,15 +844,13 @@ public Object run() {
} else {
tserver.serve();
}
return 0;
} catch (Exception e) {
LOG.error(HBaseMarkers.FATAL, "Cannot run ThriftServer", e);

System.exit(-1);
return -1;
}
return null;
}
});
return 0;
}

public static void main(String[] args) throws Exception {
Expand Down