You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2020/03/04 20:23:00 UTC
[jira] [Created] (HADOOP-16906) Add some Abortable.abort()
interface for streams etc which can be terminated
Steve Loughran created HADOOP-16906:
---------------------------------------
Summary: Add some Abortable.abort() interface for streams etc which can be terminated
Key: HADOOP-16906
URL: https://issues.apache.org/jira/browse/HADOOP-16906
Project: Hadoop Common
Issue Type: Sub-task
Components: fs, fs/azure, fs/s3
Affects Versions: 3.3.0
Reporter: Steve Loughran
Some IO we want to be able to abort rather than close cleanly, especially if the inner stream is an HTTP connection which itself supports some abort() method. For example: uploads to an object where we want to cancel the upload without close() making an incomplete write visible.
Proposed: Add a generic interface which things like streams can implement
{code}
AbortableIO {
public void abortIO() throws IOE;
}
{code}
+do for s3a output stream. I wouldn't do this a passthrough on FSDataOutputStream because we need to consider what expectations callers have of an operation being "aborted"
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org