Skip to content

Better port in use information#369

Open
jerryleooo wants to merge 1 commit into
prestodb:masterfrom
jerryleooo:better_port_in_use
Open

Better port in use information#369
jerryleooo wants to merge 1 commit into
prestodb:masterfrom
jerryleooo:better_port_in_use

Conversation

@jerryleooo
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

@kokosing kokosing left a comment

Choose a reason for hiding this comment

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

Please take a look at travis failure

@jerryleooo
Copy link
Copy Markdown
Author

@kokosing Yeah I will check later when I have time

Comment thread prestoadmin/server.py
"server start...")
error('Server failed to start on %s. Port %s already in use'
% (env.host, str(portnum)))
if 'command not found' in output:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if we set -o pipefail in run(str), we should exercise better control... Or, perhaps, netstat should be run as command and grep as Py-level processing. (with set -o pipefail there is this problem with grep that it reports failure when no line matched, so you'd need | { grep ... || true }...)

@kokosing what do you think?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes. That is much better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants