Skip to content

Prevent retry for delayed data consistency

What does this MR do?

For Sidekiq LB data consistency :delayed we are relying on sidekiq built-in retry mechanism, and if the replica is not caught up, we retry the job.

We should prevent using data_consistency: delayed if retry support is disabled or skipped. (retry: false or retry: 0)

Based on discussion, MR adds validation in validate_worker_attributes!: if a worker uses data_consistency :delayed it cannot have retries set to 0.

I am also executing validate_worker_attributes! in case sidekiq_option retry: false was set after data_consistency :delayed

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #325519 (closed)

Edited by Nikola Milojevic

Merge request reports