Skip to content

LungMAP prod snapshot trips content type assertion #7244

@hannes-ucsc

Description

@hannes-ucsc

IT prod failure caused by snapshot lungmap_prod_0229ea32ef02489eb11eff15819e22c1__20250415_20250521_lm9:

[WARNING] 2025-06-26T01:01:51.560Z 8e08cdcc-fd96-53cd-9e15-ad1a63a6db06 azul.indexer.action_controller Worker failed to handle message {'action': 'add', 'notification': {'transaction_id': '34f7bcab-bce7-4e23-96ff-7fff9e46a702', 'bundle_fqid': {'uuid': '032d0d59-bcb2-3353-9b96-327e514f8e70', 'version': '2025-03-14T14:07:17.783285Z', 'source': {'id': 'ecddba4d-335e-40ef-b08d-04e72ad339c3', 'spec': 'tdr:bigquery:gcp:datarepo-6a2dd798:lungmap_prod_0229ea32ef02489eb11eff15819e22c1__20250415_20250521_lm9:/1'}}}, 'catalog': 'lm9-it'}

Traceback (most recent call last):
  File "/var/task/azul/indexer/action_controller.py", line 63, in _handle_events
    message_handler(message)
  File "/var/task/azul/indexer/index_controller.py", line 146, in _contribute
    contributions, replicas = self.transform(catalog, notification, delete)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/task/azul/indexer/index_controller.py", line 189, in transform
    bundle = service.fetch_bundle(catalog, bundle_fqid)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/task/azul/indexer/index_service.py", line 198, in fetch_bundle
    return plugin.fetch_bundle(bundle_fqid)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/task/azul/plugins/repository/tdr.py", line 205, in fetch_bundle
    bundle = self._emulate_bundle(bundle_fqid)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/task/azul/plugins/repository/tdr_hca/__init__.py", line 332, in _emulate_bundle
    bundle.add_entity(entity=entity,
  File "/var/task/azul/plugins/repository/tdr_hca/__init__.py", line 163, in add_entity
    self._add_manifest_entry(entity, self.file_from_row(row))
                                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/task/azul/plugins/repository/tdr_hca/__init__.py", line 191, in file_from_row
    return HCAFile.from_descriptor(descriptor,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/task/azul/plugins/metadata/hca/__init__.py", line 505, in from_descriptor
    assert ';' not in content_type, R(
           ^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: R('Unexpected MIME parameter in content type', 'text/plain; charset=utf-8')

Which is in assertion introduced as part of this promotion.

Originally posted by @achave11-ucsc in #7235 (comment)

Metadata

Metadata

Assignees

Labels

indexer[subject] The indexer part of Azulmirror[subject] Code and infrastructure for mirroring data filesno demo[process] Not to be demonstrated at the end of the sprint

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions