pub struct ConsumerCommitFailedError { /* private fields */ }Expand description
An offset commit could not be completed because the group rebalanced.
Corresponds to Java’s CommitFailedException. It has no entry in Errors,
so it carries no protocol code.
Java extends chain:
CommitFailedException -> KafkaException
Note it extends KafkaException directly, so it is NOT an ApiException —
unlike its sibling ConsumerRetriableCommitFailedError,
which goes through RetriableException.
Implementations§
Source§impl ConsumerCommitFailedError
impl ConsumerCommitFailedError
Sourcepub const CONSUMER_COMMIT_FAILED_DEFAULT_MESSAGE: &str = "Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time message processing. You can address this either by increasing max.poll.interval.ms or by reducing the maximum size of batches returned in poll() with max.poll.records."
pub const CONSUMER_COMMIT_FAILED_DEFAULT_MESSAGE: &str = "Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the configured max.poll.interval.ms, which typically implies that the poll loop is spending too much time message processing. You can address this either by increasing max.poll.interval.ms or by reducing the maximum size of batches returned in poll() with max.poll.records."
Default message used by Java’s CommitFailedException no-arg constructor.
Kept as a constant so tests can assert exact equality.
Sourcepub fn with_default_message() -> Self
pub fn with_default_message() -> Self
Create the error with Java’s no-arg constructor message.
Trait Implementations§
Source§impl Clone for ConsumerCommitFailedError
impl Clone for ConsumerCommitFailedError
Source§fn clone(&self) -> ConsumerCommitFailedError
fn clone(&self) -> ConsumerCommitFailedError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsumerCommitFailedError
impl Debug for ConsumerCommitFailedError
Source§impl Display for ConsumerCommitFailedError
impl Display for ConsumerCommitFailedError
Source§impl Error for ConsumerCommitFailedError
impl Error for ConsumerCommitFailedError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ConsumerCommitFailedError
impl RefUnwindSafe for ConsumerCommitFailedError
impl Send for ConsumerCommitFailedError
impl Sync for ConsumerCommitFailedError
impl Unpin for ConsumerCommitFailedError
impl UnsafeUnpin for ConsumerCommitFailedError
impl UnwindSafe for ConsumerCommitFailedError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more