Skip to content

clickhouse-local improvements#12022

Merged
alexey-milovidov merged 3 commits intoClickHouse:masterfrom
oandrew:clickhouse-local-improvements
Jun 29, 2020
Merged

clickhouse-local improvements#12022
alexey-milovidov merged 3 commits intoClickHouse:masterfrom
oandrew:clickhouse-local-improvements

Conversation

@oandrew
Copy link
Contributor

@oandrew oandrew commented Jun 28, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Detailed description / Documentation draft:
A couple of small fixes that don't deserve separate PRs:

  1. Improve logging flags for clickhouse-local. Previously, to enable logging, you would need to call clickhouse-local like this: clickhouse-local -q "select 1" -- --logger=asd --application.baseName=qwe.
    This PR changes it to clickhouse-local -q "select 1" --logger.console
  2. Use std::filesystem::equivalent (it was throwing because /var is a symlink to /private/var on macos)
  3. /proc/cpuinfo is available only on Linux.

By adding documentation, you'll allow users to try your new feature immediately, not when someone else will have time to document it later. Documentation is necessary for all features that affect user experience in any way. You can add brief documentation draft above, or add documentation right into your patch as Markdown files in docs folder.

If you are doing this for the first time, it's recommended to read the lightweight Contributing to ClickHouse Documentation guide first.

@blinkov blinkov added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jun 28, 2020
context->shutdown();
context.reset();

status.reset();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

destruct StatusFile before the entire directory is removed in cleanup()

@alexey-milovidov alexey-milovidov self-assigned this Jun 29, 2020
@filimonov
Copy link
Contributor

I seems it resolves #11202.
Does is also allow writing log to file?

@oandrew
Copy link
Contributor Author

oandrew commented Jun 29, 2020

I seems it resolves #11202.
Does is also allow writing log to file?

Yep. clickhouse-local --logger.log file --logger.console=false write to file and disable console (otherwise it will write to both file and console)

@alexey-milovidov alexey-milovidov merged commit eeb9998 into ClickHouse:master Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants