Package org.apache.hadoop.fs.s3a
Class RemoteFileChangedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.hadoop.fs.PathIOException
org.apache.hadoop.fs.s3a.RemoteFileChangedException
- All Implemented Interfaces:
Serializable
@Public
@Unstable
public class RemoteFileChangedException
extends org.apache.hadoop.fs.PathIOException
Indicates the S3 object is out of sync with the expected version. Thrown in
cases such as when the object is updated while an
S3AInputStream is
open, or when a file to be renamed disappeared during the operation.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoteFileChangedException(String path, String operation, String message) Constructs a RemoteFileChangedException.RemoteFileChangedException(String path, String operation, String message, Throwable cause) Constructs a RemoteFileChangedException. -
Method Summary
Methods inherited from class org.apache.hadoop.fs.PathIOException
getMessage, getPath, getTargetPath, setOperation, setTargetPath, withFullyQualifiedPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
PRECONDITIONS_FAILED
- See Also:
-
FILE_NOT_FOUND_SINGLE_ATTEMPT
The file disappeaded during a rename between LIST and COPY.- See Also:
-
-
Constructor Details
-
RemoteFileChangedException
Constructs a RemoteFileChangedException.- Parameters:
path- the path accessed when the change was detectedoperation- the operation (e.g. open, re-open) performed when the change was detectedmessage- a message providing more details about the condition
-
RemoteFileChangedException
Constructs a RemoteFileChangedException.- Parameters:
path- the path accessed when the change was detectedoperation- the operation (e.g. open, re-open) performed when the change was detectedmessage- a message providing more details about the conditioncause- inner cause.
-