public static interface RecoverableFsDataOutputStream.Committer
RecoverableWriter.CommitRecoverable
.Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits the file, making it visible.
|
void |
commitAfterRecovery()
Commits the file, making it visible.
|
RecoverableWriter.CommitRecoverable |
getRecoverable()
Gets a recoverable object to recover the committer.
|
void commit() throws IOException
IOException
- Thrown if committing fails.void commitAfterRecovery() throws IOException
This method tolerates situations where the file was already committed and will not raise an exception in that case. This is important for idempotent commit retries as they need to happen after recovery.
IOException
- Thrown if committing fails.RecoverableWriter.CommitRecoverable getRecoverable()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.