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

soroban-rpc: remove noisy rollback message #1052

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

tsachiherman
Copy link
Contributor

What

When stopping soroban-rpc, it would generate a benign warning message:

WARN[2023-10-26T11:49:39.561-04:00] could not rollback fillEntriesFromCheckpoint write transactions  error="transaction has already been committed or rolled back" pid=20799

Why

The underlying transaction was already rolled back by the database session. There is no need to roll it back again.
Given that this is the exception rather then the rule, I've silenced this particular case.

Known limitations

n/a

@tsachiherman tsachiherman self-assigned this Oct 26, 2023
@tsachiherman tsachiherman requested a review from tamirms October 26, 2023 15:52
Copy link
Contributor

@stellarsaur stellarsaur left a comment

Choose a reason for hiding this comment

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

LGTM (minor golangci issues)

cmd/soroban-rpc/internal/ingest/service.go Outdated Show resolved Hide resolved
cmd/soroban-rpc/internal/ingest/service.go Outdated Show resolved Hide resolved
@tsachiherman tsachiherman enabled auto-merge (squash) October 26, 2023 16:30
@tsachiherman tsachiherman merged commit ff51660 into main Oct 26, 2023
22 checks passed
@tsachiherman tsachiherman deleted the tsachi/removal_noisy_rollback_msg branch October 26, 2023 16:51
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