Files
documentdb/pg_documentdb/include/commands
Vinod Sridharan 02b0c3af75 Merged PR 1547234: [Infra] Command timeout improvements: Move command timeouts for common commands to the backend
### Does this PR have any customer impact?
Yes

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Feature

### 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?
Yes

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
The Gateway does a convoluted processing for maxTimeMS including having a second connection pool and creating transaction wrappers.

Instead, this is simpler if this is moved into the backend and let the backend set custom timeouts directly.
This part just codes up the backend piece and puts it behind a GUC.

The Gateway changes will be made separately.

----
#### AI description  (iteration 1)
#### PR Classification
Code improvement

#### PR Summary
This pull request improves command timeout handling by moving common command timeouts to the backend.
- Added new test files `isolation-command_timeout.out` and `isolation-command_timeout.spec` to validate command timeout scenarios.
- Modified `bson_aggregation_pipeline.c` to remove the `TryHandleSimplifyAggregationRequest` function.
- Updated function signatures in `bson_aggregation_pipeline.h` to include `setStatementTimeout` parameter.
- Adjusted `documents_planner.c` to handle the new `setStatementTimeout` parameter in various query generation functions.
2025-01-15 07:48:41 +00:00
..