Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[#249] Fix of port number leak in NodeBackup::spawn_replica#250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
[FIX] PostgresNode.__exit__ releases port after shutdown and cleanup
We must release a port number after the shutdown and cleanup operation not before.It is a part of work for#249
  • Loading branch information
@dmitry-lipetsk
dmitry-lipetsk committedMay 4, 2025
commit18699f684c19feab64689ebae4e1b4bd4095a69c
4 changes: 2 additions & 2 deletionstestgres/node.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -231,8 +231,6 @@ def __enter__(self):
return self

def __exit__(self, type, value, traceback):
self.free_port()

# NOTE: Ctrl+C does not count!
got_exception = type is not None and type != KeyboardInterrupt

Expand All@@ -246,6 +244,8 @@ def __exit__(self, type, value, traceback):
else:
self._try_shutdown(attempts)

self.free_port()

def __repr__(self):
return "{}(name='{}', port={}, base_dir='{}')".format(
self.__class__.__name__,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp