mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfixes ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description 1) Support blocking background index which will do a non-concurrent index create 2) Delete dead code in the gW for background blocking index 3) Show queued index builds in currentOp 4) Prioritize pruning old skippable indexes in the queue. ---- #### AI description (iteration 1) #### PR Classification Bug fix for background indexing. #### PR Summary This pull request addresses several issues related to background indexing, including handling skippable index requests and improving logging. - `index.c`: Added function `GetSkippableRequestFromIndexQueue` to fetch skippable index requests. - `create_indexes_background.c`: Implemented `PruneSkippableIndexes` to remove stale index requests and updated `command_build_index_concurrently` to prioritize pruning. - `PostgresMongoClient.cs`: Removed temporary fix for blocking createIndexes requests. - `current_op.c`: Enhanced `AddFailedIndexBuilds` to include queued index builds. - Updated test files to reflect changes in index queue handling and logging. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->