Maven sync worker fails with invalid metadata.
🔥 Problem
We got an alarm on the Maven sync worker due to too many failures.
On inspection (internal), it seems that all failures are
metadata_content is invalid
Packages::Maven::Metadata::SyncWorker::SyncError
app/workers/packages/maven/metadata/sync_worker.rb:37:in `perform'
This indicates that the SyncService
is not successful in its execution.
We assume that the error comes from creating the versions xml file, given that the errors we see target android applications and we really doubt that this error comes from the plugin versions xml file.
So this function seems to fail = the expected xml nodes are not present in the metadata file.
🚒 Solution
- Get a metadata file content from an existing package that produces the error.
- Investigate how we can handle this situation instead of making the work fail.
Edited by David Fernandez