Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: start up ordering task bug #516

Merged
merged 2 commits into from
Sep 9, 2024
Merged

Conversation

dav1do
Copy link
Contributor

@dav1do dav1do commented Sep 6, 2024

During a recent refactor (released in 0.33), prev was incorrectly set to the init_cid in the startup ordering task. This would have caused events to have been "delivered" in a possibly random order, as everything is after the init event. As this was just introduced and we generally have short streams that should be ordered inline, it is extremely unlikely that it caused any problems that merit a clean up migration (i.e. delete the current value, read all events to rewrite the deliverable order and tell js-ceramic to indexing again) so that is not included.

I also deleted a log statement I accidentally left as info during debugging that shouldn't have landed. It could probably be trace but for now I just removed it as we have prometheus and other metrics around that.

added test to expose problem (fails before, passes now)
was made info during deubgging, maybe merits trace but removing for now
@dav1do dav1do requested review from AaronGoldman and a team as code owners September 6, 2024 19:44
@dav1do dav1do requested review from samika98 and removed request for a team September 6, 2024 19:44
Copy link

linear bot commented Sep 6, 2024

Copy link
Collaborator

@smrz2001 smrz2001 left a comment

Choose a reason for hiding this comment

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

:shipit:

@dav1do dav1do added this pull request to the merge queue Sep 9, 2024
Merged via the queue into main with commit 243307d Sep 9, 2024
5 checks passed
@dav1do dav1do deleted the fix/aes-340-ordering-startup-task branch September 9, 2024 14:14
@smrz2001 smrz2001 mentioned this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants