Skip to content

Commit 167274c

Browse files
committed
addendum
1 parent 257f8f6 commit 167274c

File tree

1 file changed

+4
-4
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode

1 file changed

+4
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public void testFsck() throws Exception {
240240

241241
private void verifyAuditLogs() {
242242
String[] auditLogOutputLines = AUDIT_LOG_CAPTURE.getOutput().split("\\n");
243-
int getFileStatusSuccess = 0;
243+
int fileStatusSuccess = 0;
244244
int fsckCount = 0;
245245
for (String auditLogLine : auditLogOutputLines) {
246246
if (!auditLogLine.contains("allowed=")) {
@@ -250,14 +250,14 @@ private void verifyAuditLogs() {
250250
LOG.info("Line: {}", extractedAuditLog);
251251
if (extractedAuditLog.contains("cmd=getfileinfo") && GET_FILE_INFO_PATTERN.matcher(
252252
extractedAuditLog).matches()) {
253-
getFileStatusSuccess++;
253+
fileStatusSuccess++;
254254
} else if (FSCK_PATTERN.matcher(extractedAuditLog).matches()) {
255255
fsckCount++;
256256
}
257257
}
258-
if (getFileStatusSuccess < 2) {
258+
if (fileStatusSuccess < 2) {
259259
throw new AssertionError(
260-
"getfileinfo cmd should occur at least 2 times. Actual count: " + getFileStatusSuccess);
260+
"getfileinfo cmd should occur at least 2 times. Actual count: " + fileStatusSuccess);
261261
}
262262
if (fsckCount < 1) {
263263
throw new AssertionError("fsck should be present at least once. Actual count: " + fsckCount);

0 commit comments

Comments
 (0)