Skip to content

keep gossip address the same as the actor address#257

Open
runsisi wants to merge 1 commit into
superfly:mainfrom
runsisi:wip-addr
Open

keep gossip address the same as the actor address#257
runsisi wants to merge 1 commit into
superfly:mainfrom
runsisi:wip-addr

Conversation

@runsisi

@runsisi runsisi commented Aug 29, 2024

Copy link
Copy Markdown

No description provided.

Signed-off-by: runsisi <runsisi@hust.edu.cn>
@jeromegn

jeromegn commented Sep 2, 2024

Copy link
Copy Markdown
Contributor

Is that causing issues?

@runsisi

runsisi commented Sep 4, 2024

Copy link
Copy Markdown
Author

we store actor address (self.external_addr().unwrap_or_else(|| self.gossip_addr()))1 in __corro_members table2, while in spawn_swim_announcer to skip local node announce3 gossip address (gossip_server_endpoint.local_addr())4 is used as local address, i.e., our_addr. i think this is not correct.

maybe we should change generate_bootstrap 5 signiture to ignore skip both gossip address and external address?

Footnotes

  1. https://github.com/superfly/corrosion/blob/e35acab3f3d6bb5499104ddf3b3dda7245a2437a/crates/corro-types/src/agent.rs#L141

  2. https://github.com/superfly/corrosion/blob/e35acab3f3d6bb5499104ddf3b3dda7245a2437a/crates/corro-agent/src/broadcast/mod.rs#L709

  3. https://github.com/superfly/corrosion/blob/e35acab3f3d6bb5499104ddf3b3dda7245a2437a/crates/corro-agent/src/agent/bootstrap.rs#L39

  4. https://github.com/superfly/corrosion/blob/e35acab3f3d6bb5499104ddf3b3dda7245a2437a/crates/corro-agent/src/agent/run_root.rs#L56

  5. https://github.com/superfly/corrosion/blob/e35acab3f3d6bb5499104ddf3b3dda7245a2437a/crates/corro-agent/src/agent/bootstrap.rs#L16

@somtochiama

Copy link
Copy Markdown
Contributor

maybe we should change generate_bootstrap 5 signiture to ignore skip both gossip address and external address?

@runsisi I think this is a better solution.

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