Skip to content

Commit

Permalink
add unsupported in get_metadata_bulk rucio#6059
Browse files Browse the repository at this point in the history
  • Loading branch information
panta-123 committed Dec 6, 2024
1 parent 8dd3ce8 commit 1eae1be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rucio/core/did_meta_plugins/elasticsearch_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def set_metadata_bulk(
:param recursive: recurse into DIDs (not supported)
:param session: The database session in use
:raises DataIdentifierNotFound: If the DID is not found.
:raises UnsupportedOperation: If recursive inserts are requested (currently unsupported).
:raises RucioException: If an error occurs while setting the metadata.
"""
doc_id = f"{scope.internal}{name}"
Expand All @@ -186,6 +187,9 @@ def set_metadata_bulk(
except Exception as err:
raise exception.RucioException(err)

if recursive:
raise exception.UnsupportedOperation(f"'{self.plugin_name.lower()}' metadata module does not currently support recursive inserts of metadata")

def delete_metadata(
self,
scope: "InternalScope",
Expand Down

0 comments on commit 1eae1be

Please sign in to comment.