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

bug: ApplicationInfo to PubsubTopic doesn't take clusterId into consideration #1902

Closed
fbarbu15 opened this issue Mar 11, 2024 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@fbarbu15
Copy link
Collaborator

This is a bug report

Problem

shardInfoToPubsubTopics and ensureShardingConfigured doesn't take clusterId into consideration when resolving the PubsubTopic for ApplicationInfo

IMO this needs to work because ApplicationInfo also contains clusterId and I expect the PubsubTopic to match it

Proposed Solutions

clusterId needs to be passed to contentTopicToPubsubTopic in those 2 functions

@chair28980 chair28980 added the bug Something isn't working label Mar 13, 2024
@danisharora099
Copy link
Collaborator

related to waku-org/nwaku#2502

@fbarbu15
Copy link
Collaborator Author

This was fixed on nwanku side here

@danisharora099
Copy link
Collaborator

danisharora099 commented Jul 8, 2024

@fbarbu15 I'm not sure I fully understand this issue. clusterId is indeed taken into account with ApplicationInfo.
What am I missing?

} else if ("application" in shardInfo && "version" in shardInfo) {
// Autosharding: single shard from application and version
return [
contentTopicToPubsubTopic(
`/${shardInfo.application}/${shardInfo.version}/default/default`,
shardInfo.clusterId
)
];

cc @waku-org/js-waku-developers

@fbarbu15
Copy link
Collaborator Author

fbarbu15 commented Jul 8, 2024

Sorry, totally forgot about this issue
I've applied this fix when I worked on js-waku sharding tests
If it's not correct please feel free to revert/fix it

@fbarbu15
Copy link
Collaborator Author

fbarbu15 commented Jul 8, 2024

Closing according to the above comment

@fbarbu15 fbarbu15 closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants