Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The first scenario is reset offset without committed offsets:

offset reset strategycurrent reset behaviorreset behavior
nonethrow exceptionthrow exception
earliestreset to earliestreset to earliest
latestreset to latestreset to latest
earliest_on_start
reset to earliest
latest_on_start
reset to latest
safe_latest

if group is started newly, reset to latest.

if some new partitions is expanded when group is consuming, reset to earliest for these new partitions.

nearest
it only effect when trigger for out-of-range, for this scenario, its behavior is determined by the earliest, or latest, or safe_latest used together.

The other is when an out of range exception is triggered:

offset reset strategycurrent reset behaviorreset behavior
nonethrow exceptionthrow exception
earliestreset to earliestreset to earliest
latestreset to latestreset to latest
earliest_on_start
throw exception
latest_on_start
throw exception
safe_latest
reset to latest, consistent with latest.
nearest
to the earliest if it was under the range, or to the latest if it was over the range. It has nothing to do with the earliest, or latest, or safe_latest used together.

...