File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ public void testFsck() throws Exception {
240
240
241
241
private void verifyAuditLogs () {
242
242
String [] auditLogOutputLines = AUDIT_LOG_CAPTURE .getOutput ().split ("\\ n" );
243
- int getFileStatusSuccess = 0 ;
243
+ int fileStatusSuccess = 0 ;
244
244
int fsckCount = 0 ;
245
245
for (String auditLogLine : auditLogOutputLines ) {
246
246
if (!auditLogLine .contains ("allowed=" )) {
@@ -250,14 +250,14 @@ private void verifyAuditLogs() {
250
250
LOG .info ("Line: {}" , extractedAuditLog );
251
251
if (extractedAuditLog .contains ("cmd=getfileinfo" ) && GET_FILE_INFO_PATTERN .matcher (
252
252
extractedAuditLog ).matches ()) {
253
- getFileStatusSuccess ++;
253
+ fileStatusSuccess ++;
254
254
} else if (FSCK_PATTERN .matcher (extractedAuditLog ).matches ()) {
255
255
fsckCount ++;
256
256
}
257
257
}
258
- if (getFileStatusSuccess < 2 ) {
258
+ if (fileStatusSuccess < 2 ) {
259
259
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 );
261
261
}
262
262
if (fsckCount < 1 ) {
263
263
throw new AssertionError ("fsck should be present at least once. Actual count: " + fsckCount );
You can’t perform that action at this time.
0 commit comments