Remove events from beforeStartupEventsQueue in-memory queue

Before replication plugin is fully loaded it can receive
events. These events are stored in an in-memory queue called
`beforeStartupEventsQueue`. After plugin is fully loaded those
events are processed but never removed from the queue. This can
cause issue processing the same event multiple times.

Replication done with apply-object may not be idempotent if
the event generated at a point in time is processed later.

To avoid that remove event from the queue and then process it.

Bug: Issue 307554728
Change-Id: Ic075c9dfa0a2e984762fed0aaf7481f035fdd662
1 file changed
tree: c22adafe75d92948cc443fb85a5e058da170a3b3
  1. .settings/
  2. src/
  3. .gitignore
  4. .mailmap
  5. BUILD
  6. LICENSE