[ https://issues.apache.org/jira/browse/HADOOP-17765?focusedWorklogId=620970&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-620970 ]
ASF GitHub Bot logged work on HADOOP-17765: ------------------------------------------- Author: ASF GitHub Bot Created on: 09/Jul/21 13:05 Start Date: 09/Jul/21 13:05 Worklog Time Spent: 10m Work Description: steveloughran commented on a change in pull request #3153: URL: https://github.com/apache/hadoop/pull/3153#discussion_r666930271 ########## File path: hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/AbstractAbfsIntegrationTest.java ########## @@ -443,6 +445,16 @@ protected Path path(String filepath) throws IOException { new Path(getTestPath(), filepath)); } + /** + * Generate a unique path using the given filepath Review comment: nit: add . ########## File path: hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAzureBlobFileSystemOauth.java ########## @@ -90,29 +92,29 @@ public void testBlobDataContributor() throws Exception { // Verify Blob Data Contributor has full access to existed folder, file // READ FOLDER - assertTrue(fs.exists(EXISTED_FOLDER_PATH)); + assertTrue(fs.exists(existedFolderPath)); //DELETE FOLDER - fs.delete(EXISTED_FOLDER_PATH, true); - assertFalse(fs.exists(EXISTED_FOLDER_PATH)); + fs.delete(existedFolderPath, true); + assertFalse(fs.exists(existedFolderPath)); Review comment: good time to move to the ContractTestUtils assertions assertPathExists/assertPathDoesNotExist as they provide meaningful messages/diagnostics. I really don't like assertTrue/assertFalse without messages, as they make debugging test failures much harder than they need to be -- 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: 620970) Time Spent: 3.5h (was: 3h 20m) > ABFS: Use Unique File Paths in Tests > ------------------------------------ > > Key: HADOOP-17765 > URL: https://issues.apache.org/jira/browse/HADOOP-17765 > 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: 3.5h > Remaining Estimate: 0h > > Many of ABFS driver tests use common names for file paths (e.g., > "/testfile"). This poses a risk of errors during parallel test runs when > static variables (such as those for monitoring stats) affected by file paths > are introduced. > Using unique test file names will avoid possible errors arising from shared > resources during parallel runs. -- 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