hdaikoku opened a new pull request, #5818:
URL: https://github.com/apache/hadoop/pull/5818

   ### Description of PR
   
   This PR fixes a bug in StagingCommitter, which leaks the staging uploads 
directory, by deleting the directory in `StagingCommitter#cleanup()`.
   
   ### How was this patch tested?
   Ran the integration tests in 
`org.apache.hadoop.fs.s3a.commit.staging.integration` against a LocalStack 
instance running on my laptop.
   
   ```xml
       <property>
           <name>fs.s3a.endpoint</name>
           <value>s3.ap-south-1.localhost.localstack.cloud:4566</value>
       </property>
   
       <property>
           <name>fs.s3a.connection.ssl.enabled</name>
           <value>false</value>
       </property>
   ```
   
   ```
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestStagingCommitProtocol
   [INFO] Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
33.196 s - in 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestStagingCommitProtocol
   [INFO] Running 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestDirectoryCommitProtocol
   [INFO] Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
30.62 s - in 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestDirectoryCommitProtocol
   [INFO] Running 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestPartitionedCommitProtocol
   [WARNING] Tests run: 24, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 
26.316 s - in 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestPartitionedCommitProtocol
   [INFO] Running 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestStagingCommitProtocolFailure
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 
s - in 
org.apache.hadoop.fs.s3a.commit.staging.integration.ITestStagingCommitProtocolFailure
   [INFO] 
   [INFO] Results:
   [INFO] 
   [WARNING] Tests run: 74, Failures: 0, Errors: 0, Skipped: 1
   ```
   
   ### For code changes:
   
   - [x] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [x] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [x] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [x] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   


-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to