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

Aligning timeouts to reflect real-world scenarios #399

Merged
merged 4 commits into from
Jan 29, 2025

Conversation

zajko
Copy link
Contributor

@zajko zajko commented Jan 28, 2025

  • Changing error messages in case of node disconnection;
  • cleaning up unused properties
  • removing request_limit and the logic attached to that since we don't actually handle multiple in-flight requests to binary-port
  • Removing the possibility to define "infinite" as a valid retry amount in node client connector since it can lead to deadlocks. That allowed removal of RpcServerConfigTarget, NodeClientConfigTarget, ExponentialBackoffConfigTarget and MaxAttemptsTarget since we don't need custom code for deserialization of the config file.
  • Added some metrics to track unwanted events (timeouts on connection/sending/receiving data from binary port, detecting response id mismatch)
  • Changed buckets definitions in RESPONSE_TIME_MS_BUCKETS constant
  • Added MAX_COMPONENT_STARTUP_TIMEOUT_SECS guard in case one of the components hangs on startup

…used properties; removing `request_limit` and the logic attached to that since we don't actually handle multiple in-flight requests; Removing the possibility to define "infinite" as a valid retry amount in node client connector since it can lead to deadlocks
metrics/src/rpc.rs Outdated Show resolved Hide resolved
rpc_sidecar/src/config.rs Outdated Show resolved Hide resolved
rpc_sidecar/src/lib.rs Outdated Show resolved Hide resolved
@@ -1059,6 +1069,7 @@ impl FramedNodeClient {
.await
.map_err(|_| Error::RequestFailed("timeout".to_owned()))?
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd log the actual error here for easier debugging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's very informative, although I see that register_timeout is in the wrong place

README.md Show resolved Hide resolved
rpc_sidecar/src/node_client.rs Outdated Show resolved Hide resolved
rpc_sidecar/src/node_client.rs Outdated Show resolved Hide resolved
sidecar/src/run.rs Outdated Show resolved Hide resolved
@zajko zajko merged commit 55151e6 into casper-network:feat-2.0 Jan 29, 2025
2 checks passed
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