[ https://issues.apache.org/jira/browse/HADOOP-17873?focusedWorklogId=643933&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-643933 ]
ASF GitHub Bot logged work on HADOOP-17873: ------------------------------------------- Author: ASF GitHub Bot Created on: 31/Aug/21 09:28 Start Date: 31/Aug/21 09:28 Worklog Time Spent: 10m Work Description: sumangala-patki commented on a change in pull request #3341: URL: https://github.com/apache/hadoop/pull/3341#discussion_r699147190 ########## File path: hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsRestOperationException.java ########## @@ -120,9 +123,9 @@ public void testWithDifferentCustomTokenFetchRetry(int numOfRetries) throws Exce // Number of retries done should be as configured Assert.assertTrue( - "Number of token fetch retries (" + RetryTestTokenProvider.reTryCount + "Number of token fetch retries (" + retryTestTokenProvider.getReTryCount() Review comment: done ########## File path: hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/oauth2/RetryTestTokenProvider.java ########## @@ -30,20 +30,20 @@ */ public class RetryTestTokenProvider implements CustomTokenProviderAdaptee { - // Need to track first token fetch otherwise will get counted as a retry too. - private static boolean isThisFirstTokenFetch = true; - public static int reTryCount = 0; + private static final Logger LOG = LoggerFactory.getLogger( + RetryTestTokenProvider.class); - private static final Logger LOG = LoggerFactory - .getLogger(RetryTestTokenProvider.class); + // Need to track first token fetch otherwise will get counted as a retry too. + private boolean isThisFirstTokenFetch = true; + private int reTryCount = 0; Review comment: changed ########## File path: hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/oauth2/RetryTestTokenProvider.java ########## @@ -30,20 +30,20 @@ */ public class RetryTestTokenProvider implements CustomTokenProviderAdaptee { - // Need to track first token fetch otherwise will get counted as a retry too. - private static boolean isThisFirstTokenFetch = true; - public static int reTryCount = 0; + private static final Logger LOG = LoggerFactory.getLogger( + RetryTestTokenProvider.class); - private static final Logger LOG = LoggerFactory - .getLogger(RetryTestTokenProvider.class); + // Need to track first token fetch otherwise will get counted as a retry too. + private boolean isThisFirstTokenFetch = true; + private int reTryCount = 0; @Override public void initialize(Configuration configuration, String accountName) throws IOException { } - public static void ResetStatusToFirstTokenFetch() { + public void resetStatusToFirstTokenFetch() { Review comment: added -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 643933) Time Spent: 1h 40m (was: 1.5h) > ABFS: Fix transient failures in ITestAbfsStreamStatistics and > ITestAbfsRestOperationException > --------------------------------------------------------------------------------------------- > > Key: HADOOP-17873 > URL: https://issues.apache.org/jira/browse/HADOOP-17873 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs/azure > Affects Versions: 3.3.1 > Reporter: Sumangala Patki > Assignee: Sumangala Patki > Priority: Major > Labels: pull-request-available > Time Spent: 1h 40m > Remaining Estimate: 0h > > To address transient failures in the following test classes: > * ITestAbfsStreamStatistics: Uses a filesystem level instance to record > read/write statistics, which also tracks these operations in other tests. > running parallelly. To be marked for sequential run only to avoid transient > failure > * ITestAbfsRestOperationException: The use of a static member to track retry > count causes transient failures when two tests of this class happen to run > together. Switch to non-static variable for assertions on retry count -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org