Skip to content

Geo: Keep the minimum cursor last event

Michael Kozono requested to merge mk/keep-last-remaining-event into master

What does this MR do?

Fixes this condition:

image

In which the PruneService prunes up-to the last processed ID (inclusive).

  • Last event ID seen from primary needs at least one event in the DB to kept
  • Last event ID processed by cursor needs the min cursor last event to be kept

This bug also would block finding the event processing lag time for https://gitlab.com/gitlab-org/gitlab-ee/issues/5386. Also similar for https://gitlab.com/gitlab-org/gitlab-ee/issues/5969.

After

image

Does this MR meet the acceptance criteria?

Edited by Kamil Trzciński (Back 2025-01-01)

Merge request reports

Loading