Exception Exceptions.OffsetOutOfRange (2.34.0)

public static final class Exceptions.OffsetOutOfRange extends Exceptions.StorageException

Offset out of range. This indicates that the append request is attempting to write data to a point beyond the current end of the stream. To append data successfully, you must either specify the offset corresponding to the current end of stream, or omit the offset from the append request. It usually means a bug in your code that introduces a gap in appends.

Constructors

OffsetOutOfRange(Status grpcStatus, String name, Long expectedOffset, Long actualOffset)

protected OffsetOutOfRange(Status grpcStatus, String name, Long expectedOffset, Long actualOffset)
Parameters
NameDescription
grpcStatusio.grpc.Status
nameString
expectedOffsetLong
actualOffsetLong