Skip to content

Conversation

@csmarchbanks
Copy link
Contributor

@csmarchbanks csmarchbanks commented May 6, 2020

If an ingester crashes during token transfer, or fails to rollback a
token transfer then it will start up with a ring entry in the JOINING
state. This will mean the ingester will no longer auto join because it
is not in the PENDING state, and cannot receive a transfer request
either. It will just stay in the JOINING state until manually deleted
and forgotten from the ring.

Instead, handle this case upon init, and set the state back to PENDING.
This will allow the newly started ingester to properly receive a
transfer request or auto join.

Signed-off-by: Chris Marchbanks [email protected]

What this PR does:

Which issue(s) this PR fixes:
Fixes #2508

Checklist

  • Tests updated
  • Documentation added - Not needed
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@csmarchbanks csmarchbanks force-pushed the init-joining-ingester branch from 1d1b803 to e139a01 Compare May 6, 2020 17:32
If an ingester crashes during token transfer, or fails to rollback a
token transfer then it will start up with a ring entry in the JOINING
state. This will mean the ingester will no longer auto join because it
is not in the PENDING state, and cannot receive a transfer request
either. It will just stay in the JOINING state until manually deleted
and forgotten from the ring.

Instead, handle this case upon init, and set the state back to PENDING.
This will allow the newly started ingester to properly receive a
transfer request or auto join.

Signed-off-by: Chris Marchbanks <[email protected]>
@csmarchbanks csmarchbanks force-pushed the init-joining-ingester branch from e139a01 to 5fa8818 Compare May 6, 2020 17:34
Copy link
Contributor

@gouthamve gouthamve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nit (just an additional safety bit).

@gouthamve gouthamve merged commit 43e3745 into master May 15, 2020
@tomwilkie tomwilkie deleted the init-joining-ingester branch June 8, 2020 13:18
@bboreham
Copy link
Contributor

Does this fix #2548 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ingester rollout broken on restart in JOINING state

5 participants