Skip to content

Commit dbb743f

Browse files
Variable name correction
1 parent 513511a commit dbb743f

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestWasbAbfsCompatibility.java

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ public void testScenario3() throws Exception {
422422
Path path = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
423423

424424
// Write
425-
try (FSDataOutputStream nativeFsStream = abfs.create(path, true)) {
426-
nativeFsStream.write(TEST_CONTEXT.getBytes());
427-
nativeFsStream.flush();
428-
nativeFsStream.hsync();
425+
try (FSDataOutputStream abfsOutputStream = abfs.create(path, true)) {
426+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
427+
abfsOutputStream.flush();
428+
abfsOutputStream.hsync();
429429
}
430430

431431
// Check file status
@@ -672,10 +672,10 @@ public void testScenario9() throws Exception {
672672
Path testFile = path("/testReadFile");
673673
Path path = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
674674

675-
try (FSDataOutputStream nativeFsStream = abfs.create(path, true)) {
676-
nativeFsStream.write(TEST_CONTEXT.getBytes());
677-
nativeFsStream.flush();
678-
nativeFsStream.hsync();
675+
try (FSDataOutputStream abfsOutputStream = abfs.create(path, true)) {
676+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
677+
abfsOutputStream.flush();
678+
abfsOutputStream.hsync();
679679
}
680680

681681
// Check file status
@@ -715,10 +715,10 @@ public void testScenario10() throws Exception {
715715
Path testFile = path("/testReadFile");
716716
Path path = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
717717

718-
try (FSDataOutputStream nativeFsStream = abfs.create(path, true)) {
719-
nativeFsStream.write(TEST_CONTEXT.getBytes());
720-
nativeFsStream.flush();
721-
nativeFsStream.hsync();
718+
try (FSDataOutputStream abfsOutputStream = abfs.create(path, true)) {
719+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
720+
abfsOutputStream.flush();
721+
abfsOutputStream.hsync();
722722
}
723723

724724
// Check file status
@@ -960,10 +960,10 @@ public void testScenario16() throws Exception {
960960

961961
// Write
962962
wasb.create(path, true);
963-
try (FSDataOutputStream nativeFsStream = abfs.append(path)) {
964-
nativeFsStream.write(TEST_CONTEXT.getBytes());
965-
nativeFsStream.flush();
966-
nativeFsStream.hsync();
963+
try (FSDataOutputStream abfsOutputStream = abfs.append(path)) {
964+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
965+
abfsOutputStream.flush();
966+
abfsOutputStream.hsync();
967967
}
968968

969969
// Check file status
@@ -994,10 +994,10 @@ public void testScenario17() throws Exception {
994994
Path path = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
995995

996996
// Write
997-
try (FSDataOutputStream nativeFsStream = abfs.create(path, true)) {
998-
nativeFsStream.write(TEST_CONTEXT.getBytes());
999-
nativeFsStream.flush();
1000-
nativeFsStream.hsync();
997+
try (FSDataOutputStream abfsOutputStream = abfs.create(path, true)) {
998+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
999+
abfsOutputStream.flush();
1000+
abfsOutputStream.hsync();
10011001
}
10021002
// --- VALIDATE FILE ---
10031003
FileStatus status = abfs.getFileStatus(path);
@@ -1182,10 +1182,10 @@ public void testScenario21() throws Exception {
11821182
Path path = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
11831183

11841184
// Write
1185-
try (FSDataOutputStream nativeFsStream = abfs.create(path, true)) {
1186-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1187-
nativeFsStream.flush();
1188-
nativeFsStream.hsync();
1185+
try (FSDataOutputStream abfsOutputStream = abfs.create(path, true)) {
1186+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1187+
abfsOutputStream.flush();
1188+
abfsOutputStream.hsync();
11891189
}
11901190
// --- VALIDATE FILE ---
11911191
FileStatus status = wasb.getFileStatus(path);
@@ -1330,10 +1330,10 @@ public void testScenario24() throws Exception {
13301330
Path path = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
13311331

13321332
// Write
1333-
try (FSDataOutputStream nativeFsStream = abfs.create(path, true)) {
1334-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1335-
nativeFsStream.flush();
1336-
nativeFsStream.hsync();
1333+
try (FSDataOutputStream abfsOutputStream = abfs.create(path, true)) {
1334+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1335+
abfsOutputStream.flush();
1336+
abfsOutputStream.hsync();
13371337
}
13381338
// --- VALIDATE FILE ---
13391339
FileStatus status = wasb.getFileStatus(path);
@@ -1423,10 +1423,10 @@ public void testScenario26() throws Exception {
14231423
Path path = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
14241424

14251425
// Write
1426-
try (FSDataOutputStream nativeFsStream = abfs.create(path, true)) {
1427-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1428-
nativeFsStream.flush();
1429-
nativeFsStream.hsync();
1426+
try (FSDataOutputStream abfsOutputStream = abfs.create(path, true)) {
1427+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1428+
abfsOutputStream.flush();
1429+
abfsOutputStream.hsync();
14301430
}
14311431
// --- VALIDATE FILE ---
14321432
FileStatus status = abfs.getFileStatus(path);
@@ -1469,10 +1469,10 @@ public void testScenario27() throws Exception {
14691469
Path testPath2 = new Path(testFile + "/~12/!008/testfile_" + UUID.randomUUID());
14701470

14711471
// Write
1472-
try (FSDataOutputStream nativeFsStream = abfs.create(testPath1, true)) {
1473-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1474-
nativeFsStream.flush();
1475-
nativeFsStream.hsync();
1472+
try (FSDataOutputStream abfsOutputStream = abfs.create(testPath1, true)) {
1473+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1474+
abfsOutputStream.flush();
1475+
abfsOutputStream.hsync();
14761476
}
14771477

14781478
// Check file status
@@ -1570,10 +1570,10 @@ public void testScenario29() throws Exception {
15701570

15711571
// Write
15721572
wasb.create(testPath1, true);
1573-
try (FSDataOutputStream nativeFsStream = abfs.append(testPath1)) {
1574-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1575-
nativeFsStream.flush();
1576-
nativeFsStream.hsync();
1573+
try (FSDataOutputStream abfsOutputStream = abfs.append(testPath1)) {
1574+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1575+
abfsOutputStream.flush();
1576+
abfsOutputStream.hsync();
15771577
}
15781578

15791579
// Check file status
@@ -1773,10 +1773,10 @@ public void testScenario33() throws Exception {
17731773

17741774
// Write
17751775
abfs.mkdirs(testFile);
1776-
try (FSDataOutputStream nativeFsStream = abfs.create(testPath1, true)) {
1777-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1778-
nativeFsStream.flush();
1779-
nativeFsStream.hsync();
1776+
try (FSDataOutputStream abfsOutputStream = abfs.create(testPath1, true)) {
1777+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1778+
abfsOutputStream.flush();
1779+
abfsOutputStream.hsync();
17801780
}
17811781
abfs.create(testPath2, true);
17821782
abfs.create(testPath3, true);
@@ -1823,10 +1823,10 @@ public void testScenario34() throws Exception {
18231823

18241824
// Write
18251825
abfs.mkdirs(testFile);
1826-
try (FSDataOutputStream nativeFsStream = abfs.create(testPath1, true)) {
1827-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1828-
nativeFsStream.flush();
1829-
nativeFsStream.hsync();
1826+
try (FSDataOutputStream abfsOutputStream = abfs.create(testPath1, true)) {
1827+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1828+
abfsOutputStream.flush();
1829+
abfsOutputStream.hsync();
18301830
}
18311831
abfs.create(testPath3, true);
18321832

@@ -1965,10 +1965,10 @@ public void testScenario37() throws Exception {
19651965

19661966
// Write
19671967
abfs.mkdirs(testFile);
1968-
try (FSDataOutputStream nativeFsStream = abfs.create(testPath1, true)) {
1969-
nativeFsStream.write(TEST_CONTEXT.getBytes());
1970-
nativeFsStream.flush();
1971-
nativeFsStream.hsync();
1968+
try (FSDataOutputStream abfsOutputStream = abfs.create(testPath1, true)) {
1969+
abfsOutputStream.write(TEST_CONTEXT.getBytes());
1970+
abfsOutputStream.flush();
1971+
abfsOutputStream.hsync();
19721972
}
19731973
abfs.create(testPath3, true);
19741974

0 commit comments

Comments
 (0)