Skip to content

fix: node discovery warning message spam #514

Description

@tegefaulkes

Specification

When providing no seed nodes to connect to we would end up with logger warning messages Failed to connect to any seed nodes when syncing node graph. Since a lot of tests start a PolykeyAgent with no seed nodes provided, this ended up with a lot of useless warning messages during tests.

This can be fixed by checking if there are any provided seed nodes and skip discovery if none are provided.

Additional context

Tasks

  1. Skip discovery if no seeds nodes are provided to the NodeManager.

Activity

  1. self-assigned this
    on Mar 19, 2023
  2. tegefaulkes commented on Mar 20, 2023

    @tegefaulkes
    ContributorAuthor

    Moved comment, ignore this.

  3. tegefaulkes commented on Mar 20, 2023

    @tegefaulkes
    ContributorAuthor

    Moved comment, ignore this.

  4. tegefaulkes commented on Mar 20, 2023

    @tegefaulkes
    ContributorAuthor

    Moved comment, ignore this.

  5. tegefaulkes commented on Mar 20, 2023

    @tegefaulkes
    ContributorAuthor

    Moved comment, ignore this.

  6. tegefaulkes commented on Mar 20, 2023

    @tegefaulkes
    ContributorAuthor

    Moved comment, ignore this.

  7. tegefaulkes commented on Mar 20, 2023

    @tegefaulkes
    ContributorAuthor

    Moved comment, ignore this.

  8. tegefaulkes commented on Mar 20, 2023

    @tegefaulkes
    ContributorAuthor

    I have been commenting on the wrong issue. Let me fix that...

  9. tegefaulkes commented on Mar 21, 2023

    @tegefaulkes
    ContributorAuthor

    This was an opportunistic fix to prevent a bunch of logger warning messages during testing. Strictly speaking, failing to connect to all of the seed nodes is concerning. Not having any seeds nodes to connect to is not.

    Example of logger messages from testing, specifically Failed to connect to any seed nodes when syncing node graph.

    WARN:agentUnlock test.NodeManager:Failed to connect to any seed nodes when syncing node graph
    WARN:agentUnlock test:Failed to verify identity claim between v07bvphcua9efa29q9dl5ro7taqkkik59oei5roeab45evfn40i60 and ["test-provider","trusted-node"]
    WARN:agentUnlock test.NodeManager:Failed to connect to any seed nodes when syncing node graph
    WARN:agentUnlock test.NodeManager:Failed to connect to any seed nodes when syncing node graph
    WARN:agentUnlock test:Failed to verify identity claim between v5j6hiij5sspo0g6l2ue2adtgstvl82cmtcjgdu1t3odf1d9kinig and ["test-provider","trusted-node"]
    WARN:agentUnlock test:Failed to verify identity claim between v5j6hiij5sspo0g6l2ue2adtgstvl82cmtcjgdu1t3odf1d9kinig and ["test-provider","trusted-node"]
    WARN:agentUnlock test.NodeManager:Failed to connect to any seed nodes when syncing node graph
    WARN:NodeManager:Failed to connect to any seed nodes when syncing node graph
    WARN:agentUnlock test.NodeManager:Failed to connect to any seed nodes when syncing node graph
    WARN:agentUnlock test.NodeManager:Failed to connect to any seed nodes when syncing node graph
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions