Limit the context for paused elasticsearch jobs
What does this MR do?
When we pause elasticsearch indexing, we store the jobs in a ZSET. The advantage of that would be that the jobs are automatically deduplicated. Thanks Redis!
However, since the application context contains unique information (correlation_id, user, caller_id), we would lose this benefit.
With this, we only include the shared information (the meta.project
key),
which is shared across the deduplicatable jobs.
The project information should be enough context for logging purposes: The namespace can be inferred from that, and the caller_id should be populated again when the job is rescheduled.
For #232347 (closed)
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry - [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Tested in all supported browsers
- [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done
Edited by Bob Van Landuyt