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 syncing total count when using signed_only=True #1609

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

gerrod3
Copy link
Contributor

@gerrod3 gerrod3 commented Oct 4, 2023

if cv_unique in self.already_synced:
return

# Mark the collection version as being processed
self.already_synced.add(cv_unique)
Copy link
Member

Choose a reason for hiding this comment

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

What is this? Apart from eating a lot of memory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is for the dependency sync. We don't want to re-process the same collection version that we have already synced. There is only like 50,000 collection versions so this set grows up to a few megabytes.

Copy link
Member

Choose a reason for hiding this comment

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

So it's for depsolving?

Copy link
Member

Choose a reason for hiding this comment

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

Do we want to skip this when doing a full mirror sync anyway?
What if we do a bloom filter thing?

(Just a few thoughts...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I added an if check for adding a CV to the already-synced set.

Copy link
Member

Choose a reason for hiding this comment

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

Sorry, this was asking on a tangent. Would you mind making it a separate change?

mdellweg
mdellweg previously approved these changes Oct 5, 2023
@gerrod3 gerrod3 force-pushed the empty-signed-sync branch 3 times, most recently from f237538 to dcfaec8 Compare October 6, 2023 15:16
@mdellweg mdellweg enabled auto-merge (rebase) December 11, 2023 15:57
@mdellweg mdellweg merged commit 5fecc4d into pulp:main Dec 11, 2023
9 checks passed
@gerrod3 gerrod3 deleted the empty-signed-sync branch December 11, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants