citus/src/backend/distributed/operations
Jelte Fennema 84410da2ba Fix showing target shard size in the rebalance progress monitor (#5136)
The progress monitor wouldn't actually update the size of the shard on
the target node when using "block_writes" as the `shard_transfer_mode`.
The reason for this is that the CREATE TABLE part of the shard creation
would only be committed once all data was moved as well. This caused
our size calculation to always return 0, since the table did not exist
yet in the session that the progress monitor used.

This is fixed by first committing creation of the table, and only then
starting the actual data copy.

The test output changes slightly. Apparently splitting this up in two
transactions instead of one, increases the table size after the copy by
about 40kB. The additional size used doesn't increase when with the
amount of data in the table is larger (it stays ~40kB per shard). So 
this small change in test output is not considered an actual problem.

(cherry picked from commit 2aa67421a7)
2021-07-23 16:49:39 +02:00
..
citus_create_restore_point.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
citus_tools.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
create_shards.c Not include to-be-deleted shards while finding shard placements 2021-07-14 19:28:32 +03:00
delete_protocol.c Not include to-be-deleted shards while finding shard placements 2021-07-14 19:28:32 +03:00
modify_multiple_shards.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
node_protocol.c Get ready for Improve index backed constraint creation for online rebalancer 2021-06-22 08:23:57 +03:00
partitioning.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
repair_shards.c Fix showing target shard size in the rebalance progress monitor (#5136) 2021-07-23 16:49:39 +02:00
shard_cleaner.c Use "orphaned shards" naming in more places 2021-06-04 11:39:19 +02:00
shard_rebalancer.c Only allow moves of shards of distributed tables (#5072) 2021-07-14 19:07:45 +03:00
split_shards.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
stage_protocol.c Move CheckCitusVersion to the top of each function 2021-06-01 17:43:46 +02:00
worker_node_manager.c COPY uses adaptive connection management on local node 2021-02-04 09:45:07 +01:00