You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dmitry-lipetsk
changed the title
[BUG] NodeBackup::spawn_replica does not release port during failure
[BUG] NodeBackup::spawn_replica does not release a reserved port number during failure
May 4, 2025
…ed port number during failure
NodeBackup::spawn_replica uses an explict "rollback" code to destroy a newly allocated node to release a reserved port number.
Alter execution of TestTestgresCommon::test_replication_slots one port is not released.
Not released port is allocated in NodeBackup::spawn_primary that is called in NodeBackup::spawn_replica:
testgres/testgres/backup.py
Lines 187 to 192 in 5f8f5dd
NodeBackup::spawn_replica uses clean_on_error to destroy newly created node but clean_on_error does not call PostgresNode::free_port.
testgres/testgres/utils.py
Lines 314 to 326 in 5f8f5dd
It seems to me, to fix this issue we can just call node.free_port method in clean_on_error immediatelly after node.cleanup.
Or we must to call node.free_port from node.cleanup.
The text was updated successfully, but these errors were encountered: