Skip to content

Commit 721da66

Browse files
committed
fix checkstyle.
1 parent 8f29ad1 commit 721da66

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ public Collection<ErasureCodingPolicyInfo> getAllErasureCodingPolicies() throws
17801780
params.put(OP_PARAM, Operation.GETECPOLICIES.toString());
17811781
Path path = new Path(getUri().toString(), "/");
17821782
HttpURLConnection conn =
1783-
getConnection(Operation.GETECPOLICIES.getMethod(), params, path, true);
1783+
getConnection(Operation.GETECPOLICIES.getMethod(), params, path, false);
17841784
HttpExceptionUtils.validateResponse(conn, HttpURLConnection.HTTP_OK);
17851785
JSONObject json = (JSONObject) HttpFSUtils.jsonParse(conn);
17861786
return JsonUtilClient.getAllErasureCodingPolicies(json);

hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/BaseTestHttpFSWith.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,7 +2137,8 @@ private void testGetAllEEPolicies() throws Exception {
21372137
WebHdfsFileSystem webHdfsFileSystem = (WebHdfsFileSystem) httpFs;
21382138
diffErasureCodingPolicies = webHdfsFileSystem.getAllErasureCodingPolicies();
21392139
} else {
2140-
Assert.fail(fs.getClass().getSimpleName() + " doesn't support getSnapshotDiff");
2140+
Assert.fail(fs.getClass().getSimpleName() +
2141+
" is not of type HttpFSFileSystem or WebHdfsFileSystem");
21412142
}
21422143

21432144
//Validate erasureCodingPolicyInfos are the same as DistributedFileSystem

0 commit comments

Comments
 (0)