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

Fix error 'Is another postmaster already running on port XXX'#120

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
MetalDream666 merged 1 commit intomasterfromfix-already-used-port-startup-error
Apr 5, 2024

Conversation

MetalDream666
Copy link
Contributor

Sometimes when we abnormally shutdown node its port stays busy. So I added retry attempts to start() function in case we encounter such error

raise Exception
elif out and 'Is another postmaster already running on port' in out and startup_retries > 0:
self.port = reserve_port()
options['port'] = str(self.port)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

flake8 упал

  • flake8 .
    ./build/lib/testgres/node.py:737:21: F821 undefined name 'options'
    ./build/lib/testgres/node.py:738:40: F821 undefined name 'options'
    ./testgres/node.py:737:21: F821 undefined name 'options'
    ./testgres/node.py:738:40: F821 undefined name 'options'

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Переделала, тесты прошли

@MetalDream666MetalDream666force-pushed thefix-already-used-port-startup-error branch 6 times, most recently from6f57364 to8a5e75fCompareApril 5, 2024 15:21
@MetalDream666MetalDream666force-pushed thefix-already-used-port-startup-error branch 2 times, most recently from242e01f to63e2061CompareApril 5, 2024 15:39
Sometimes when we abnormally shutdown node its port stays busy. So Iadded retry attempts to start() function in case we encounter sucherror. Test for this case was added (test_the_same_port).
@MetalDream666MetalDream666force-pushed thefix-already-used-port-startup-error branch from63e2061 tofba3bd3CompareApril 5, 2024 16:23
@MetalDream666MetalDream666 merged commit4766f93 intomasterApr 5, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@demonolockdemonolockdemonolock approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@MetalDream666@demonolock

[8]ページ先頭

©2009-2025 Movatter.jp