Skip to content

Commit

Permalink
Resolved checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattmanish98 committed Jan 9, 2025
1 parent 83fc86a commit 6863cf8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@
files="org[\\/]apache[\\/]hadoop[\\/]fs[\\/]azurebfs[\\/]commit[\\/]ITestAbfsTerasort.java"/>
<suppress checks="ParameterNumber"
files="org[\\/]apache[\\/]hadoop[\\/]fs[\\/]azurebfs[\\/]services[\\/]TestAbfsOutputStream.java"/>
<suppress checks="MagicNumber"
files="org[\\/]apache[\\/]hadoop[\\/]fs[\\/]azurebfs[\\/]ITestAzureBlobFileSystemDelete.java"/>
<suppress checks="MagicNumber"
files="org[\\/]apache[\\/]hadoop[\\/]fs[\\/]azurebfs[\\/]ITestAzureBlobFileSystemRename.java"/>
</suppressions>
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ void createRenamePendingJson(Path path, byte[] bytes)
abfsClient.append(path.toUri().getPath(), bytes,
appendRequestParameters, null, null, tracingContext);

List<String> blockIdList = new ArrayList<>(Collections.singleton(blockId));
// List<String> blockIdList = new ArrayList<>(Collections.singleton(blockId));
// String blockList = generateBlockListXml(blockIdList);
// PutBlockList on the path.
String blockList = ""; //generateBlockListXml(blockIdList);
String blockList = "";
abfsClient.flush(blockList.getBytes(StandardCharsets.UTF_8),
path.toUri().getPath(), true, null, null, eTag, null, tracingContext);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,8 @@ public void testParallelRenameForAtomicRenameShouldFail() throws Exception {
fs.rename(src, dst);
} catch (Exception e) {
if (e.getCause() instanceof AbfsLease.LeaseException
&& e.getCause().getCause() instanceof AbfsRestOperationException &&
((AbfsRestOperationException) e.getCause()
&& e.getCause().getCause() instanceof AbfsRestOperationException
&& ((AbfsRestOperationException) e.getCause()
.getCause()).getStatusCode() == HTTP_CONFLICT) {
exceptionOnParallelRename.set(true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

public class RenameAtomicityTestUtils {

public RenameAtomicityTestUtils() {
private RenameAtomicityTestUtils() {
}

/**
Expand Down

0 comments on commit 6863cf8

Please sign in to comment.