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

chore: Verbose logs after retrying the projection a number of times #1245

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

johanandren
Copy link
Member

@johanandren johanandren commented Nov 15, 2024

Depends on an upstream release of Akka 2.10.1

.withLogLevel(LogLevels.Warning)
// Once we have retried many times, it could still be a transient failure but is
// more likely to be a permanent problem, so increase verbosity/include full stack trace
.withVerboseLogsAfter(5))
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if this should perhaps be from config and tuneable or if just having a hardcoded sensible default is enough. With the default settings this means that it starts printing a full stack trace after retrying and backing off 5 times ( ~1 minute and 20 seconds.)

Copy link
Member Author

Choose a reason for hiding this comment

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

We could also just explicitly define it in gRPC replication, and recommend/show setting it for direct gRPC usage instead of defaulting here.

@johanandren johanandren force-pushed the wip-grpc-projection-error-logs branch from 319a879 to dedfe49 Compare January 27, 2025 16:16
@johanandren johanandren marked this pull request as ready for review January 27, 2025 16:23
@johanandren
Copy link
Member Author

Dang, I just imagined we had 2.10.1 out yet

@johanandren johanandren marked this pull request as draft January 27, 2025 16:25
@johanandren johanandren force-pushed the wip-grpc-projection-error-logs branch from da0735a to 0c61ec6 Compare January 28, 2025 15:36
@johanandren johanandren marked this pull request as ready for review January 28, 2025 15:37
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

@johanandren johanandren merged commit d9495c0 into main Jan 28, 2025
22 checks passed
@johanandren johanandren deleted the wip-grpc-projection-error-logs branch January 28, 2025 16:13
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