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

Missing object imports in duplicate RPSL keys in the same source #560

Closed
mxsasha opened this issue Sep 25, 2021 · 2 comments · Fixed by #596
Closed

Missing object imports in duplicate RPSL keys in the same source #560

mxsasha opened this issue Sep 25, 2021 · 2 comments · Fixed by #596
Assignees
Labels
backport Should be backported to previous releases bug Something isn't working
Milestone

Comments

@mxsasha
Copy link
Collaborator

mxsasha commented Sep 25, 2021

IRRDv4 is built on the assumption that the primary key is unique in each source. However, this is not true, and causes IRRD to miss objects.

The scale of this is unknown, but this has been the case since before 4.0.0, so likely not too widespread. It also has not come up in the many v3/v4 consistency checks.

One case is AS-DONNATRANS, which is both a mntner and as-set in RIPE. The import of one probably overwrites the other. Regardless of whether this is a good way to name objects, or should or should not be valid, it is a thing people do, so should be supported.

Probably the right fix is for IRRd to treat object class, RPSL pk, and source as unique together.

@mxsasha mxsasha added bug Something isn't working backport Should be backported to previous releases labels Sep 25, 2021
@mxsasha mxsasha self-assigned this Sep 25, 2021
@job
Copy link
Member

job commented Sep 25, 2021

Your idea how to fix it makes sense to me

@mxsasha
Copy link
Collaborator Author

mxsasha commented Dec 6, 2021

There's probably still an issue with deletions:

stmt = table.delete(
sa.and_(table.c.rpsl_pk == rpsl_pk, table.c.source == source),

@mxsasha mxsasha reopened this Dec 6, 2021
mxsasha added a commit that referenced this issue Jun 23, 2022
mxsasha added a commit that referenced this issue Jun 23, 2022
mxsasha added a commit that referenced this issue Jun 23, 2022
…teFileImportParser (#622) (#661)

(cherry picked from commit ccce3b2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Should be backported to previous releases bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants