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 (hubble): One of the hubs has different count of links as compared to other ones #1558

Closed
manan19 opened this issue Nov 3, 2023 · 3 comments
Labels
s-noop Cannot be worked on

Comments

@manan19
Copy link
Contributor

manan19 commented Nov 3, 2023

What is the bug?
link count differs for 1 of the hubs despite being at 100% sync on 1.7.0

How can it be reproduced? (optional)

const { getSSLHubRpcClient } = require('@farcaster/hub-nodejs');

const testHub = async (hubRpcEndpoint) => {
  let client = getSSLHubRpcClient(hubRpcEndpoint);
  let fid = 194;

  client.$.waitForReady(Date.now() + 2000, async (e) => {
    if (e) {
      console.error(`Failed to connect to ${hubRpcEndpoint}`);
    } else {
      console.log(`Connected to ${hubRpcEndpoint}`);
      const linksResult = await client.getLinksByTarget({ 
        targetFid: fid,
        linkType: 'follow',
        pageSize: 10000,
     });
      console.log(`${JSON.stringify(linksResult.value.messages.length)} follows for fid ${fid} from ${hubRpcEndpoint}`);
    }
    client.close();
  });
};

// has lower count
testHub('myhub-with-lower-link-count.xyz:2283');

// have same count
testHub('nemes.farcaster.xyz:2283');
testHub('hoyt.farcaster.xyz:2283');
testHub('myhub-with-same-link-count.xyz:2283');
@github-actions github-actions bot added the s-triage Needs to be reviewed, designed and prioritized label Nov 3, 2023
@sanjayprabhu
Copy link
Contributor

What are the counts you are seeing?

@manan19
Copy link
Contributor Author

manan19 commented Nov 3, 2023

What are the counts you are seeing?

right now - 8042 for the hub with lowcount, 8045 for the rest

obv. more people might follow/unfollow fid 194, changing these numbers but the difference of 3 has been constant over the past 24 hours that I've discovered this issue

@sds sds added s-noop Cannot be worked on and removed s-triage Needs to be reviewed, designed and prioritized labels Mar 7, 2024
@sds
Copy link
Member

sds commented Mar 7, 2024

Thanks for the report. Going to close given the age and the fact that we've released many improvements to the hubs since this was opened, but if you continue to see this do open again and include the latest details. Thanks!

@sds sds closed this as completed Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s-noop Cannot be worked on
Projects
None yet
Development

No branches or pull requests

3 participants