Skip to content

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Apr 28, 2025

Upcycling BaseRole to serve as the home of the WIP failure detector. This PR does not change any behaviour.

// intentionally empty

Stack created with Sapling. Best reviewed with ReviewStack.

Copy link

github-actions bot commented Apr 28, 2025

Test Results

  7 files  ±0    7 suites  ±0   4m 41s ⏱️ -11s
 54 tests ±0   53 ✅ ±0  1 💤 ±0  0 ❌ ±0 
223 runs  ±0  220 ✅ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit fbab068. ± Comparison against base commit f6cbbb2.

♻️ This comment has been updated with latest results.

Leveraging the fact the Version::INVALID is 0 to pack the metadata versions better in memory. Version needs 4 bytes (u32) while Option<Version> needs 8. `PeerMetadataVersion` now needs 16 bytes instead of 32, same for `Header`.

The other change is to let `MetadataVersions` keep track of the actual observed version of the peer as this might come handy for introspection later. This doesn't impact performance as we still only notify if the version is higher than our latest local view.

```
// intentionally empty
```
This also removes the need for TonicServiceFilter for core networking. With the new service design, individual services will respond with SvcNotReady if they received requests before they're started. Moreover, this introduces a check when accepting connections to ensure we return ServiceUnavailable if we received connections before acquiring our node id. This is a transitional step until we can allow core networking to accept connections before the node id is acquired.

```
// intentionally empty
```
Upcycling `BaseRole` to serve as the home of the WIP failure detector. This PR does not change any behaviour.

```
// intentionally empty
```
@AhmedSoliman AhmedSoliman merged commit fbab068 into main Apr 30, 2025
51 checks passed
@AhmedSoliman AhmedSoliman deleted the pr3200 branch April 30, 2025 09:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants