Skip to content

Proper wait of the clickhouse-server in tests#37560

Merged
tavplubix merged 5 commits intoClickHouse:masterfrom
azat:tests-scripts-proper-wait
Jun 17, 2022
Merged

Proper wait of the clickhouse-server in tests#37560
tavplubix merged 5 commits intoClickHouse:masterfrom
azat:tests-scripts-proper-wait

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented May 26, 2022

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

@robot-ch-test-poll robot-ch-test-poll added the pr-not-for-changelog This PR should not be mentioned in the changelog label May 26, 2022
@azat azat force-pushed the tests-scripts-proper-wait branch 3 times, most recently from 9d96a49 to 5fd0010 Compare May 26, 2022 17:27
azat added 5 commits May 27, 2022 07:18
If 10 seconds will not be enough to finish the server, then
clickhouse-local (that goes after) cannot obtain the logs due to status
file will be locked, like in [1]:

    Code: 76. DB::Exception: Cannot lock file /var/lib/clickhouse/status. Another server instance in same directory is already running. (CANNOT_OPEN_FILE)

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/35075/4a064e5b6f81136f2bf923d85001f25fa05d39ce/stateless_tests_flaky_check__address__actions_.html

So use proper wait via "clickhouse stop"

v2: Fix permissions pid file for replicated database servers
    They do not use default, /var/run/clickhouse-server, that do not have
    proper permissions.

Fixes: ClickHouse#36885
Signed-off-by: Azat Khuzhin <[email protected]>
v2: fix permissions for /var/run/clickhouse-server?
Signed-off-by: Azat Khuzhin <[email protected]>
Note, thiat removes "ability to run fasttest locally", but other jobs
cannot do this.

Signed-off-by: Azat Khuzhin <[email protected]>
@azat azat force-pushed the tests-scripts-proper-wait branch from 5fd0010 to 827e73a Compare May 27, 2022 04:23
@azat
Copy link
Copy Markdown
Member Author

azat commented Jun 8, 2022

Can someone take a look please?

@tavplubix tavplubix self-assigned this Jun 17, 2022
@tavplubix tavplubix merged commit 5ba3044 into ClickHouse:master Jun 17, 2022
@azat azat deleted the tests-scripts-proper-wait branch June 20, 2022 04:38
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