Skip to content

Conversation

@pnrgenc
Copy link
Member

@pnrgenc pnrgenc commented Dec 23, 2025

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a critical bug in the mutation manager job where all MongoDB operations were being performed on the drill database (common.drillDb) regardless of the specified target database in the task. The fix introduces proper database selection and validation logic to ensure mutations are applied to the correct database.

Key Changes:

  • Added a database lookup mechanism (MONGO_DATABASES and getMongoDbInstance) to dynamically select the correct MongoDB instance based on task.db
  • Implemented validation to ensure at least one backend (MongoDB or ClickHouse) is available before processing mutation tasks
  • Updated deleteMongo and updateMongo methods to accept and use the correct database instance instead of hardcoding common.drillDb

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kanwarujjaval kanwarujjaval merged commit 50b9ce7 into newarchitecture Dec 23, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants