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 Details

    • PRECONDITIONS_FAILED

      public static final String PRECONDITIONS_FAILED
      See Also:
    • FILE_NOT_FOUND_SINGLE_ATTEMPT

      public static final String FILE_NOT_FOUND_SINGLE_ATTEMPT
      The file disappeaded during a rename between LIST and COPY.
      See Also:
  • Constructor Details

    • RemoteFileChangedException

      public RemoteFileChangedException(String path, String operation, String message)
      Constructs a RemoteFileChangedException.
      Parameters:
      path - the path accessed when the change was detected
      operation - the operation (e.g. open, re-open) performed when the change was detected
      message - a message providing more details about the condition
    • RemoteFileChangedException

      public RemoteFileChangedException(String path, String operation, String message, Throwable cause)
      Constructs a RemoteFileChangedException.
      Parameters:
      path - the path accessed when the change was detected
      operation - the operation (e.g. open, re-open) performed when the change was detected
      message - a message providing more details about the condition
      cause - inner cause.