Skip to content

Force fetch metadata from object store

Marius Bobin requested to merge 259619-force-metadata-fetching into master

What does this MR do and why?

Sometimes the metadata is outdated and contains values for the local file because we're using the same object that was used to perform the upload. We're interested in the metadata from object store, so we need to burst that cache and force fetch it directly from the store.

Screenshots or screen recordings

Before:

Here Carrierwave fails to update the file attributes with the metadata received from Google. Note that the hash is available right after the upload.

Screen_Shot_2021-10-13_at_16.40.16

After:

Screen_Shot_2021-10-13_at_17.38.00

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #259619 (closed)

Edited by Marius Bobin

Merge request reports