[
https://issues.apache.org/jira/browse/HADOOP-19569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143979#comment-18143979
]
ASF GitHub Bot commented on HADOOP-19569:
-----------------------------------------
bowenli-oai commented on PR #8528:
URL: https://github.com/apache/hadoop/pull/8528#issuecomment-6834038463
[P2] Preserve tasks accepted before orderly shutdown
Reviewed https://github.com/apache/hadoop/pull/8528 at
`ad0d2f48efbd62b30a1934a7b63eb0ba38f67584` (open).
The new execution-time checks in
`hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/SemaphoredDelegatingExecutor.java:240`
and `:263` reject work already accepted before `shutdown()`. With a blocked
single worker, enqueue a Runnable and Callable, call orderly shutdown, then
release the worker: both futures fail with RejectedExecutionException and
neither body runs. I reproduced this using the unchanged PR class and the
existing shaded Guava delegate, with no-op statistics/annotation dependencies.
This also bypasses task-owned completion signaling: Aliyun directory rename
counts submitted copy tasks and waits for their completion counter; if
filesystem close shuts down the copy pool before queued copies start, those
tasks never reach their finally block and the rename can wait indefinitely.
Please keep shutdown rejection at submission, allowing accepted queued tasks
to drain, and add a regression covering queued Runnable/Callable execution
after orderly shutdown.
> S3A: stream write/close fails badly once FS is closed
> -----------------------------------------------------
>
> Key: HADOOP-19569
> URL: https://issues.apache.org/jira/browse/HADOOP-19569
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.5.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Major
> Labels: pull-request-available
>
> when closing a process during a large upload, and NPE is triggered in the
> abort call. This is because the S3 client has already been released.
> {code}
> java.lang.NullPointerException
> at
> org.apache.hadoop.fs.s3a.S3AFileSystem.lambda$abortMultipartUpload$41(S3AFileSystem.java:5337)
> at
> org.apache.hadoop.fs.statistics.impl.IOStatisticsBinding.invokeTrackingDuration(IOStatisticsBinding.java:547)
> at
> org.apache.hadoop.fs.statistics.impl.IOStatisticsBinding.lambda$trackDurationOfOperation$5(IOStatisticsBinding.java:528)
> at
> org.apache.hadoop.fs.statistics.impl.IOStatisticsBinding.trackDuration(IOStatisticsBinding.java:449)
> at
> org.apache.hadoop.fs.s3a.S3AFileSystem.abortMultipartUpload(S3AFileSystem.java:5336)
> at
> org.apache.hadoop.fs.s3a.WriteOperationHelper.lambda$abortMultipartUpload$4(WriteOperationHelper.java:392)
> {code}
> * close() in small writes also fails, just with a different exception
> * and on some large writes, the output stream hangs as it awaits the end of
> the queued writes. This is a problem inside the semaphore executor
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]