-
Notifications
You must be signed in to change notification settings - Fork 2
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
Common prefix applies to DUOS bundles #6609
Comments
The first step is to confirm the existence of the bug by forcing an observable symptom to manifest. To do this, choose one of the other sources in catalog The first reindex should use a 1-character common prefix that includes both the source's Duos bundle and at least one other bundle. It may be tricky or even impossible to find such a prefix since both sources are very small. The Duos bundle's UUID should match the If we observe that the Duos description is present for the chosen source after the first reindex, but not after the second, then we'll know the bug is real. |
If the bug is real, then I think the fix is: Subject: [PATCH] FIX
---
Index: src/azul/plugins/repository/tdr_anvil/__init__.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/azul/plugins/repository/tdr_anvil/__init__.py b/src/azul/plugins/repository/tdr_anvil/__init__.py
--- a/src/azul/plugins/repository/tdr_anvil/__init__.py (revision af05032981d433a2738d1c847b8123cb56083a17)
+++ b/src/azul/plugins/repository/tdr_anvil/__init__.py (date 1727918440073)
@@ -237,7 +237,10 @@
duos_count += 1
# Ensure that one partition will always contain the DUOS bundle
# regardless of the choice of common prefix
- if not bundle_uuid.startswith(prefix):
+ common_prefix = spec.prefix.common
+ assert prefix.startswith(common_prefix), (prefix, spec)
+ partition_prefix = prefix.removeprefix(common_prefix)
+ if not bundle_uuid[len(common_prefix):].startswith(partition_prefix):
continue
bundles.append(TDRAnvilBundleFQID(
source=source, |
Confirmed via Kibana console that there are three DUOS replicas on |
The DUOS bundle should always be indexed, regardless of the choice of common prefix. This used to be the case, but a bug was introduced here: 0959f94#diff-574e06963918c328fe8ef7ee75b0281cf8a7f10e8f4a5bc9d1fa8b91df5a0e92R229
There is currently no observable symptom of this logic failure, because the only AnVIL snapshot that currently uses a common prefix (
ANVIL_1000G_2019_Dev_20230609_ANV5_202306121732
onanvilbox
) is not registered on Duos, and thus no Duos bundle will be emitted.The text was updated successfully, but these errors were encountered: