biothings/biothings.api

Creating multiple indices for a single build overwrites metadata of previous indices

ravila4 opened this issue · 0 comments

Creating multiple indices for a build (for example, one for elasticsearch 7 and 8) results in only latest index information being displayed in the releases tab of the build information. I think this behavior is new, as I recall being able to see information about multiple releases before updating to BT 0.11.

Reproduction steps

  1. Create a build (You can use the "test_drug" configuration in MyChem for a quick result)
  2. Create a full release in 'local7' environment
  3. Create a full release in 'local8' environment

Results

We after running both steps, we see only the latest index is displayed in the studio, even though both were created successfully.
Both indices exist in their respective servers, and we can create snapshots manually.

Expected results

We should see two different indices, one for ES7 and one for ES8.

We can see that the issue is not with the studio app because the index data is missing from the MongoDB backend.
For example, for the build drug_20220628_hzp7ldjc in MyChem, we can see the metadata only contains one index under the index field: http://localhost:27080/build/drug_20220628_hzp7ldjc