steveloughran commented on a change in pull request #2675:
URL: https://github.com/apache/hadoop/pull/2675#discussion_r586621183
##########
File path:
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java
##########
@@ -4532,8 +4814,10 @@ private HeaderProcessing getHeaderProcessing() {
public RemoteIterator<LocatedFileStatus> listLocatedStatus(final Path f,
final PathFilter filter)
throws FileNotFoundException, IOException {
- entryPoint(INVOCATION_LIST_LOCATED_STATUS);
Path path = qualify(f);
+ // Unless that iterator is closed, the iterator wouldn't be closed
+ // there.
+ entryPoint(INVOCATION_LIST_LOCATED_STATUS, path);
Review comment:
Latest PR is moving back to try-with-resource/some closure mechanism. As
close() only deactivates the span, it does not close it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]