Skip to content

Parses clickhouse log file for discovering port number #131

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 24, 2021

Conversation

bnaecker
Copy link
Collaborator

Removes port-discovery methods parsing lsof/pfiles output, and
parses ClickHouse log file for the HTTP port it listens on. This is only
done if the program is run with a port of 0, so the OS assigns any
available port. This relies on upstream changes in ClickHouse -- and the
script to download ClickHouse has updated MD5s to reflected that.

@bnaecker bnaecker requested a review from smklein June 23, 2021 19:55
@bnaecker
Copy link
Collaborator Author

Closes #130 when merged

@bnaecker bnaecker force-pushed the dev/robust-clickhouse-port-detection branch 2 times, most recently from fd13409 to 998ab05 Compare June 23, 2021 20:32
@bnaecker bnaecker force-pushed the dev/robust-clickhouse-port-detection branch from 998ab05 to a48f978 Compare June 23, 2021 20:37
@bnaecker bnaecker force-pushed the dev/robust-clickhouse-port-detection branch from a48f978 to 82019d0 Compare June 23, 2021 20:45
Removes port-discovery methods parsing `lsof`/`pfiles` output, and
parses ClickHouse log file for the HTTP port it listens on. This is only
done if the program is run with a port of 0, so the OS assigns any
available port. This relies on upstream changes in ClickHouse -- and the
script to download ClickHouse has updated MD5s to reflected that.
@bnaecker bnaecker force-pushed the dev/robust-clickhouse-port-detection branch from 82019d0 to d05a971 Compare June 23, 2021 23:13
@bnaecker
Copy link
Collaborator Author

ClickHouse on macOS is currently broken, so I'm going to wait to merge this until that's resolved. Fix is apparently here.

bnaecker added 2 commits June 23, 2021 18:42
- Adds checksum files for database binaries, with MD5s for each platform
- Adds this checksum file to the GitHub actions cache key, so that the
cache is invalidated if the sums change, i.e., as new versions of the
binaries are uploaded
@bnaecker bnaecker force-pushed the dev/robust-clickhouse-port-detection branch from 8818b32 to cb49d1f Compare June 24, 2021 19:48
@bnaecker bnaecker merged commit 931cda7 into main Jun 24, 2021
@bnaecker bnaecker deleted the dev/robust-clickhouse-port-detection branch June 24, 2021 20:02
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.

2 participants