Skip to content
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

Fix corner case (only) for exit code overflow #11601

Merged
merged 3 commits into from Jun 11, 2020

Conversation

filimonov
Copy link
Contributor

@filimonov filimonov commented Jun 11, 2020

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

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix wrong exit code of the clickhouse-client, when exception.code() % 256 = 0.

Detailed description / Documentation draft:
Fixes #11581. Other status codes should stay as is now (so @vzakaznikov's tests will not blow up).

@blinkov blinkov added the pr-bugfix Pull request with bugfix, not backported by default label Jun 11, 2020
@alexey-milovidov
Copy link
Member

PVS Ok.

@alexey-milovidov
Copy link
Member

NULL pointer in

2020.06.11 18:12:51.946411 [ 14042 ] {} BaseDaemon: 5. /build/obj-x86_64-linux-gnu/../src/Storages/MergeTree/MergeTreeData.cpp:1640: DB::MergeTreeData::PartsTemporaryRename::tryRenameAll() @ 0x10f0f2bb in /usr/bin/clickhouse

- something new...

@alexey-milovidov alexey-milovidov mentioned this pull request Jun 11, 2020
16 tasks
@alexey-milovidov alexey-milovidov merged commit d5c2008 into ClickHouse:master Jun 11, 2020
vitlibar pushed a commit that referenced this pull request Jun 19, 2020
Fix corner case (only) for exit code overflow

(cherry picked from commit d5c2008)
vitlibar pushed a commit that referenced this pull request Jun 19, 2020
Fix corner case (only) for exit code overflow

(cherry picked from commit d5c2008)
vitlibar pushed a commit that referenced this pull request Jun 20, 2020
Fix corner case (only) for exit code overflow

(cherry picked from commit d5c2008)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-bugfix Pull request with bugfix, not backported by default
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shell exit code overflow when exception code > 255
4 participants