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(state-sync): Enable State Sync from GCS by default #9398

Merged
merged 8 commits into from
Aug 9, 2023

Conversation

nikurt
Copy link
Contributor

@nikurt nikurt commented Aug 8, 2023

No description provided.

@nikurt nikurt requested a review from ppca August 8, 2023 14:32
@nikurt nikurt marked this pull request as ready for review August 8, 2023 14:35
@nikurt nikurt requested a review from a team as a code owner August 8, 2023 14:35
@nikurt nikurt requested a review from akhi3030 August 8, 2023 14:35
saketh-are and others added 2 commits August 8, 2023 17:45
The RoutingTableView in the debug UI includes a table over the direct peers of the node:

<img width="516" alt="image" src="https://github.com/near/nearcore/assets/3241341/c8c1f0b8-1e0a-458e-a2ad-f09f20fcb57c">

Each active connection of the node has one row in the table. The last column is populated using the most recent distance vector shared by the direct peer.

In some cases there may be a direct connection for which we have not received a distance vector yet. This PR allows the debug UI to gracefully handle such cases and display "null" instead of producing an error.
}
if matches!(state_sync_config, SyncConfig::Peers) {
// TODO #8719
tracing::warn!(
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of removing this message, should we replace with a message saying "node is syncing its state! If this failed, please do the following xxx"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, PTAL.

@nikurt nikurt requested a review from ppca August 8, 2023 16:06
@near-bulldozer near-bulldozer bot merged commit 63170aa into master Aug 9, 2023
@near-bulldozer near-bulldozer bot deleted the nikurt-default-state-sync branch August 9, 2023 16:57
ppca pushed a commit that referenced this pull request Aug 9, 2023
* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* RoutingTableView: gracefully handle missing distance vectors (#9394)

The RoutingTableView in the debug UI includes a table over the direct peers of the node:

<img width="516" alt="image" src="https://github.com/near/nearcore/assets/3241341/c8c1f0b8-1e0a-458e-a2ad-f09f20fcb57c">

Each active connection of the node has one row in the table. The last column is populated using the most recent distance vector shared by the direct peer.

In some cases there may be a direct connection for which we have not received a distance vector yet. This PR allows the debug UI to gracefully handle such cases and display "null" instead of producing an error.

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

---------

Co-authored-by: Saketh Are <saketh.are@gmail.com>
nikurt added a commit that referenced this pull request Aug 24, 2023
* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* RoutingTableView: gracefully handle missing distance vectors (#9394)

The RoutingTableView in the debug UI includes a table over the direct peers of the node:

<img width="516" alt="image" src="https://github.com/near/nearcore/assets/3241341/c8c1f0b8-1e0a-458e-a2ad-f09f20fcb57c">

Each active connection of the node has one row in the table. The last column is populated using the most recent distance vector shared by the direct peer.

In some cases there may be a direct connection for which we have not received a distance vector yet. This PR allows the debug UI to gracefully handle such cases and display "null" instead of producing an error.

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

---------

Co-authored-by: Saketh Are <saketh.are@gmail.com>
nikurt added a commit to nikurt/nearcore that referenced this pull request Aug 24, 2023
* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* RoutingTableView: gracefully handle missing distance vectors (near#9394)

The RoutingTableView in the debug UI includes a table over the direct peers of the node:

<img width="516" alt="image" src="https://github.com/near/nearcore/assets/3241341/c8c1f0b8-1e0a-458e-a2ad-f09f20fcb57c">

Each active connection of the node has one row in the table. The last column is populated using the most recent distance vector shared by the direct peer.

In some cases there may be a direct connection for which we have not received a distance vector yet. This PR allows the debug UI to gracefully handle such cases and display "null" instead of producing an error.

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

---------

Co-authored-by: Saketh Are <saketh.are@gmail.com>
nikurt added a commit that referenced this pull request Aug 28, 2023
* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* RoutingTableView: gracefully handle missing distance vectors (#9394)

The RoutingTableView in the debug UI includes a table over the direct peers of the node:

<img width="516" alt="image" src="https://github.com/near/nearcore/assets/3241341/c8c1f0b8-1e0a-458e-a2ad-f09f20fcb57c">

Each active connection of the node has one row in the table. The last column is populated using the most recent distance vector shared by the direct peer.

In some cases there may be a direct connection for which we have not received a distance vector yet. This PR allows the debug UI to gracefully handle such cases and display "null" instead of producing an error.

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

* fix(state-sync): Enable State Sync from GCS by default

---------

Co-authored-by: Saketh Are <saketh.are@gmail.com>
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.

4 participants