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

ReplicateAndRegister operation fails if SourceSE is tape and there are disk replicas #6689

Open
chaen opened this issue Jan 16, 2023 · 0 comments
Assignees

Comments

@chaen
Copy link
Contributor

chaen commented Jan 16, 2023

Very low priority for me to fix (if ever...) but if you specify the source of the replication in the transformation and that the said source is tape, and you have an available disk replicas, then no available replica is found

This comes from the fact that we check the requested Source SE AFTER we checked the disk replicas

replicas = dataManager.getActiveReplicas(opFile.LFN, getUrl=False, preferDisk=True)
if not replicas["OK"]:
log.error("Failed to get active replicas", replicas["Message"])
return replicas
reNotExists = re.compile(r".*such file.*")
replicas = replicas["Value"]
failed = replicas["Failed"].get(opFile.LFN, "")
if reNotExists.match(failed.lower()):
opFile.Status = "Failed"
opFile.Error = failed
return S_ERROR(failed)
replicas = replicas["Successful"].get(opFile.LFN, {})
# If user set sourceSEs, only consider those replicas
if opSources:
replicas = {x: y for (x, y) in replicas.items() if x in opSources}

@chaen chaen self-assigned this Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant