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: deduplicate list of clients in retrieval tasks #513

Merged
merged 4 commits into from
Feb 11, 2025

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Feb 10, 2025

Recently, we discovered that there is a lot of deals using the same payload CID bafkqaaa. There are more than 22k deals, but only between 27 miners and 9 clients. As a result, when one of such deals is picked for testing, the list of clients is very long and full of duplicates.

Example:
https://api.filspark.com/rounds/meridian/0x8460766edc62b525fc1fa4d628fc79229dc73031/25039

In this change, I am modifying the query sampling eligible deals to de-duplicate the list of clients in each task.

Recently, we discovered that there is a lot of deals using the same
payload CID `bafkqaaa`. There are more than 22k deals, but only
between 27 miners and 9 clients. As a result, when one of such deals is
picked for testing, the list of clients is very long and full of
duplicates.

In this change, I am modifying the query sampling eligible deals
to de-duplicate the list of clients in each task.

Signed-off-by: Miroslav Bajtoš <[email protected]>
@juliangruber

This comment was marked as duplicate.

Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

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

Reasoning lgtm, but CI is failing

Signed-off-by: Miroslav Bajtoš <[email protected]>
@bajtos
Copy link
Member Author

bajtos commented Feb 11, 2025

Reasoning lgtm, but CI is failing

Fixed in 739fc1c. My new test was affecting other test cases.

@bajtos bajtos merged commit bb8356f into main Feb 11, 2025
8 checks passed
@bajtos bajtos deleted the fix-duplicate-clientids branch February 11, 2025 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants