Skip to content

Commit

Permalink
HDFS-16724. Modify patch based on comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zengqiang.xu committed Aug 12, 2022
1 parent 92090b1 commit a0b33ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ public class NoLocationException extends IOException {

private static final long serialVersionUID = 1L;

public NoLocationException(String path, String className) {
super("Cannot find locations for " + path + " in " + className);
}

public NoLocationException(String message) {
super(message);
public NoLocationException(String path, Class<?> t) {
super("Cannot find locations for " + path + " in " + t.getSimpleName());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ protected List<RemoteLocation> getLocationsForPath(String path,
final PathLocation location =
this.subclusterResolver.getDestinationForPath(path);
if (location == null) {
throw new NoLocationException(path, this.subclusterResolver.getClass().getSimpleName());
throw new NoLocationException(path, this.subclusterResolver.getClass());
}

// We may block some write operations
Expand Down

0 comments on commit a0b33ae

Please sign in to comment.