Files
documentdb/pg_helio_api/include
Tanvi Bhandari f3857be909 Merged PR 1326506: [Index Build background] Reduce default value of cron job schedule and DropIndex change
### Does this PR have any customer impact?

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

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)

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

### Description
1. Reduce default value of cron job schedule to 2 seconds for Index Build background feature.
    Though, the Index Build background  feature is behind GUC (disabled by-default)
2. Disable cron job for upgrade test, we have seen flakiness in the test
3. DropIndexes should be able to cancel CreateIndexes as right owner so that execution of DROP INDEX CONCURRENTLY is cleaner and it does not conflict with CREATE INDEX CONCURRENTLY

Sample serverside logs for 3rd point

```
2024-04-16 16:54:34.990 UTC [40693] LOG:  Cancel existing index build request for 6 is completed.
2024-04-16 16:54:34.990 UTC [40693] STATEMENT:  CALL mongo_api_v1.drop_indexes_concurrently($1, $2)
**2024-04-16 16:54:34.991 UTC [40704] WARNING:  CONCURRENTLY-enabled index commands can fail partially, leaving behind an INVALID index.
         Use DROP INDEX CONCURRENTLY IF EXISTS to remove the invalid index.
2024-04-16 16:54:34.991 UTC [40704] ERROR:  canceling statement due to user request
2024-04-16 16:54:34.991 UTC [40704] HINT:  canceling statement due to user request
2024-04-16 16:54:34.991 UTC [40704] STATEMENT:  CREATE INDEX CONCURRENTLY documents_rum_index_6 ON mongo_data.documents_1 USING pgmongo_rum ( document mongo_catalog.bson_rum_single_path_ops(path='_id'), document mongo_catalog.bson_rum_single_path_ops(path='vendorItemId'))
2024-04-16 16:54:34.991 UTC [40705] ERROR:  canceling statement due to user request
2024-04-16 16:54:34.991 UTC [40705] HINT:  canceling statement due to user request**
2024-04-16 16:54:34.991 UTC [40705] STATEMENT:  CREATE  INDEX CONCURRENTLY  documents_rum_index_6_102045 ON  mongo_data.documents_1_102045 USING pgmongo_rum (document mongo_catalog.bson_rum_single_path_ops (path = '_id' ) ,document mongo_catalog.bson_rum_single_path_ops (path = 'vendorItemId' ) )

Related work items: #3109561
2024-04-19 12:03:52 +03:00
..
2024-01-12 19:10:20 +00:00
2024-01-12 19:10:20 +00:00