Class CommitFailedException

Object
Throwable
Exception
io.delta.kernel.commit.CommitFailedException
All Implemented Interfaces:
Serializable

@Experimental public class CommitFailedException extends Exception
Exception raised by Committer.commit(io.delta.kernel.engine.Engine, io.delta.kernel.utils.CloseableIterator<io.delta.kernel.data.Row>, io.delta.kernel.commit.CommitMetadata).
  | retryable | conflict  | meaning                                                         |
  |   no      |   no      | something bad happened (e.g. auth failure)                      |
  |   no      |   yes     | permanent transaction conflict (e.g. multi-table commit failed) |
  |   yes     |   no      | transient error (e.g. network hiccup)                           |
  |   yes     |   yes     | physical conflict (allowed to rebase and retry)                 |
 
See Also:
  • Constructor Details

    • CommitFailedException

      public CommitFailedException(boolean retryable, boolean conflict, String message)
    • CommitFailedException

      public CommitFailedException(boolean retryable, boolean conflict, String message, Throwable cause)
  • Method Details

    • isRetryable

      public boolean isRetryable()
      Returns whether the commit can be retried.
    • isConflict

      public boolean isConflict()
      Returns whether the commit failed due to a conflict.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable