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 deadlock on events ingestion error #167

Merged
merged 1 commit into from
May 9, 2024

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented May 9, 2024

What

Ensure mutex is unlocked in case of error

Why

It causes a deadlock in case of error

Known limitations

N/A

@2opremio
Copy link
Contributor Author

2opremio commented May 9, 2024

and this is why it would be great to get a block-level defer in Go: golang/go#54249

Copy link
Contributor

@Shaptic Shaptic left a comment

Choose a reason for hiding this comment

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

nice catch 👍

Copy link
Contributor

@psheth9 psheth9 left a comment

Choose a reason for hiding this comment

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

just one comment !!

cmd/soroban-rpc/internal/events/events.go Show resolved Hide resolved
@2opremio 2opremio merged commit ae6d3ba into main May 9, 2024
20 checks passed
@2opremio 2opremio deleted the deadlock-on-event-ingestion-error branch May 9, 2024 23:12
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.

3 participants