Open Bug 1950587 Opened 23 days ago Updated 23 days ago

Ensure re-registering pings doesn't cause state confusion

Categories

(Data Platform and Tools :: Glean: SDK, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: janerik, Unassigned)

References

Details

bug 1947748 showed another instance of confusion what is the valid state of pings after they get re-registered.
We should tackle that better and ensure we only ever have a single instance per ping name around and thus no more state confusion.

This could work by ensuring we re-use an already registered instance if a new one is created (by looking it up in the registry).
Or by merging the state somehow.

A problem with that lookup/interning of ping instances is that we allow ping registration before Glean is initialized.
It will require a bit more to deal with that second list of pings.

See Also: → 1950589
You need to log in before you can comment on or make changes to this bug.