Gürkan İndibay
3a6bf7e9ea
Merge branch 'main' into create_alter_database
2023-11-17 13:40:57 +03:00
Japin Li
e14e8667cc
Fix redundant variable declaration ( #7353 )
...
The `$workerCount` declare twice in
src/test/regress/pg_regress_multi.pl.
2023-11-17 13:01:23 +03:00
Gürkan İndibay
32b0fc23f5
Removes unnecessary package installations in packaging pipelines ( #7341 )
...
With the recent changes in packaging images, linux package installations
to execute validate_output is unnecessary now.
In this PR, I removed them to make the pipeline more effective.
- [x] Remove the test warning before merge
2023-11-17 08:51:56 +03:00
Naisila Puka
55d500de8d
Remove accidentally added gucs.out ( #7349 )
2023-11-16 14:51:31 +03:00
Hanefi Onaldi
5efd3f181a
Fix wrong PR links in changelog ( #7350 )
...
When preparing changelog for 12.1.1 release, I accidentally swapped
the PR numbers for the two commits. This commit fixes the changelog
to point to the correct PRs.
2023-11-16 14:12:17 +03:00
Naisila Puka
0d1f18862b
Propagates SECURITY LABEL ON ROLE stmt ( #7304 )
...
We propagate `SECURITY LABEL [for provider] ON ROLE rolename IS
labelname` to the worker nodes.
We also make sure to run the relevant `SecLabelStmt` commands on a
newly added node by looking at roles found in `pg_shseclabel`.
See official docs for explanation on how this command works:
https://www.postgresql.org/docs/current/sql-security-label.html
This command stores the role label in the `pg_shseclabel` catalog table.
This commit also fixes the regex string in
`check_gucs_are_alphabetically_sorted.sh` script such that it escapes
the dot. Previously it was looking for all strings starting with "citus"
instead of "citus." as it should.
To test this feature, I currently make use of a special GUC to control
label provider registration in PG_init when creating the Citus extension.
2023-11-16 13:12:30 +03:00
gindibay
c63f124c93
Fixes indentation
2023-11-16 09:08:45 +03:00
gindibay
1cdae74a4c
Fixes review notes
2023-11-16 08:45:20 +03:00
gindibay
e56a113572
Adds missing line
2023-11-16 08:09:09 +03:00
gindibay
a948358d63
Fixes multi_test_helpers
2023-11-16 08:01:44 +03:00
gindibay
ef2a47e882
Fixes function after merge
2023-11-16 07:20:59 +03:00
gindibay
a6e16252d1
Removes extra line
2023-11-16 05:34:41 +03:00
gindibay
56bc813bd0
Adds check_database_on_all_nodes
2023-11-16 05:13:10 +03:00
gindibay
ed9021ca90
Merge branch 'main' of https://github.com/citusdata/citus into create_alter_database
2023-11-16 04:37:01 +03:00
gindibay
8443ae36e7
Fixes indentation
2023-11-16 02:59:32 +03:00
gindibay
95572c5ada
Adds EnableCreateDatabasePropagation flag check
2023-11-16 02:58:56 +03:00
gindibay
b474d98e5c
Removes log
2023-11-15 23:09:35 +03:00
gindibay
bb2b7ae9da
Adds logs for test
2023-11-15 23:02:21 +03:00
gindibay
a68587391c
Fixes indentation
2023-11-15 21:32:28 +03:00
gindibay
772a13dc7c
Removes SendDatabaseGrantSyncCommands
2023-11-15 21:32:01 +03:00
gindibay
feb609868e
Fixes flag name
2023-11-15 21:12:45 +03:00
gindibay
9b6511ad10
Fixes indentation
2023-11-15 20:57:27 +03:00
gindibay
cd40380d80
resets enable_create_database_propagation
2023-11-15 20:51:40 +03:00
gindibay
e18c4400dc
Removes unnecessary logs
2023-11-15 20:48:17 +03:00
gindibay
144ede3bf0
Adds GUC check for db grant sync
2023-11-15 20:45:13 +03:00
gindibay
11e7c94e2f
Removes extra line in test
2023-11-15 19:32:00 +03:00
gindibay
0f1273f6ad
Updates test output
2023-11-15 19:03:16 +03:00
gindibay
dc48833679
Adds tests for non-distributed database
2023-11-15 18:48:46 +03:00
gindibay
deee8e53dd
Adds grant to public
2023-11-15 17:33:14 +03:00
gindibay
7939267326
Fixes flakiness of test
2023-11-15 17:28:50 +03:00
gindibay
37681eaed0
Fixes comment on code
2023-11-15 17:01:42 +03:00
Gürkan İndibay
bb76a9b4b9
Merge branch 'main' into create_alter_database
2023-11-15 17:18:11 +03:00
gindibay
931514b0f7
Fixes indentation
2023-11-15 16:41:38 +03:00
gindibay
6f838e6e88
Fixes indentation
2023-11-15 16:34:02 +03:00
gindibay
eb46d9399b
Fixes warning on compile
2023-11-15 16:26:14 +03:00
gindibay
9a558bdece
Adds datacl propagation
2023-11-15 16:04:26 +03:00
Naisila Puka
c6fbb72c02
Fix flaky multi_prepare_plsql ( #7346 )
...
Simple need of an `ORDER BY` clause
Ran into this twice this week already!
https://github.com/citusdata/citus/actions/runs/6849701315/attempts/1#summary-18622563506
https://github.com/citusdata/citus/actions/runs/6875051160/attempts/1#summary-18698009952
```diff
SELECT nspname, typname FROM pg_type JOIN pg_namespace ON pg_namespace.oid = pg_type.typnamespace WHERE typname = 'prepare_ddl_type_backup';
nspname | typname
-------------+-------------------------
- public | prepare_ddl_type_backup
otherschema | prepare_ddl_type_backup
+ public | prepare_ddl_type_backup
(2 rows)
```
2023-11-15 13:28:43 +03:00
Naisila Puka
a960799dfb
Clean up leftover replication slots in tests ( #7338 )
...
This commit fixes the flakiness in `logical_replication` and
`citus_non_blocking_split_shard_cleanup` tests. The flakiness
was related to leftover replication slots.
Below is a flaky example for each test:
logical_replication https://github.com/citusdata/citus/actions/runs/6721324131/attempts/1#summary-18267030604
citus_non_blocking_split_shard_cleanup https://github.com/citusdata/citus/actions/runs/6721324131/attempts/1#summary-18267006967
```diff
-- Replication slots should be cleaned up
SELECT slot_name FROM pg_replication_slots;
slot_name
---------------------------------
-(0 rows)
+ citus_shard_split_slot_19_10_17
+(1 row)
```
The tests by themselves are not flaky: 32 flaky test
schedules each with 20 runs run successfully.
https://github.com/citusdata/citus/actions/runs/6822020127?pr=7338
The conclusion is that:
1. `multi_tenant_isolation_nonblocking` is the problematic test running
before `logical_replication` in the `enterprise_schedule`, so I added a
cleanup at the end of `multi_tenant_isolation_nonblocking`.
https://github.com/citusdata/citus/actions/runs/6824334614/attempts/1#summary-18560127461
2. `citus_split_shard_by_split_points_negative` is the problematic test
running before `citus_non_blocking_split_shards_cleanup` in the split
schedule. Also added cleanup line.
For details on the investigation of leftover replication slots,
please check the PR https://github.com/citusdata/citus/pull/7338
2023-11-14 18:50:54 +03:00
Naisila Puka
cdef2d5224
Random tests refactoring ( #7342 )
...
While investigating replication slots leftovers
in PR https://github.com/citusdata/citus/pull/7338 ,
I ran into the following refactoring/cleanup
that can be done in our test suite:
- Add separate test to remove non default nodes
- Remove coordinator removal from `add_coordinator` test
Use `remove_coordinator_from_metadata` test where needed
- Don't print nodeids in `multi_multiuser_auth` and
`multi_poolinfo_usage`
tests
- Use `startswith` when checking for isolation or failure tests
- Add some dependencies accordingly in `run_test.py` for running flaky
test schedules
2023-11-14 12:49:15 +03:00
gindibay
cf019b858c
Adds static declarations
2023-11-14 10:21:23 +03:00
gindibay
c1e9335fb7
Adds distributed check in metadata syncing
2023-11-14 09:01:00 +03:00
Gürkan İndibay
7780101619
Update src/backend/distributed/commands/database.c
...
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-11-13 19:00:40 +03:00
Gürkan İndibay
1e044a217d
Update src/backend/distributed/deparser/deparse_database_stmts.c
...
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-11-13 19:00:01 +03:00
Gürkan İndibay
a956786bd8
Update src/backend/distributed/deparser/deparse_database_stmts.c
...
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-11-13 18:59:48 +03:00
Gürkan İndibay
32df3313d4
Update src/backend/distributed/metadata/metadata_sync.c
...
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-11-13 18:59:36 +03:00
gindibay
05d8d4454f
Merge branch 'create_alter_database' of https://github.com/citusdata/citus into create_alter_database
2023-11-13 17:17:39 +03:00
Onur Tirtir
c1dce6fc2b
commit
2023-11-13 18:02:31 +03:00
Gürkan İndibay
7e15939e50
Update src/backend/distributed/commands/database.c
...
Co-authored-by: Onur Tirtir <onurcantirtir@gmail.com>
2023-11-13 17:15:11 +03:00
gindibay
b5388ddf92
Adds icu_rules in meta_data sync
2023-11-13 17:13:56 +03:00
gindibay
fcdea98edd
Removes drop in citus_internal_db_command udf
2023-11-13 15:58:09 +03:00