HDFS-7305. NPE seen in wbhdfs FS while running SLive. Contributed by Jing Zhao.
Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/web/WebHdfsFileSystem.java
This commit is contained in:
parent
1354ec1c74
commit
c8dfc9126a
|
@ -856,6 +856,7 @@ Release 2.6.0 - UNRELEASED
|
||||||
HDFS-7300. The getMaxNodesPerRack() method in BlockPlacementPolicyDefault
|
HDFS-7300. The getMaxNodesPerRack() method in BlockPlacementPolicyDefault
|
||||||
is flawed (kihwal)
|
is flawed (kihwal)
|
||||||
|
|
||||||
|
HDFS-7305. NPE seen in wbhdfs FS while running SLive. (jing9)
|
||||||
|
|
||||||
BREAKDOWN OF HDFS-6584 ARCHIVAL STORAGE
|
BREAKDOWN OF HDFS-6584 ARCHIVAL STORAGE
|
||||||
|
|
||||||
|
|
|
@ -355,7 +355,7 @@ public class WebHdfsFileSystem extends FileSystem
|
||||||
// extract UGI-related exceptions and unwrap InvalidToken
|
// extract UGI-related exceptions and unwrap InvalidToken
|
||||||
// the NN mangles these exceptions but the DN does not and may need
|
// the NN mangles these exceptions but the DN does not and may need
|
||||||
// to re-fetch a token if either report the token is expired
|
// to re-fetch a token if either report the token is expired
|
||||||
if (re.getMessage().startsWith("Failed to obtain user group information:")) {
|
if (re.getMessage() != null && re.getMessage().startsWith("Failed to obtain user group information:")) {
|
||||||
String[] parts = re.getMessage().split(":\\s+", 3);
|
String[] parts = re.getMessage().split(":\\s+", 3);
|
||||||
re = new RemoteException(parts[1], parts[2]);
|
re = new RemoteException(parts[1], parts[2]);
|
||||||
re = ((RemoteException)re).unwrapRemoteException(InvalidToken.class);
|
re = ((RemoteException)re).unwrapRemoteException(InvalidToken.class);
|
||||||
|
|
Loading…
Reference in New Issue