Skip to content

02010_lc_native: Generate a new id for each query#31720

Merged
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
Algunenano:02010_lc_native_ids
Nov 25, 2021
Merged

02010_lc_native: Generate a new id for each query#31720
alexey-milovidov merged 1 commit intoClickHouse:masterfrom
Algunenano:02010_lc_native_ids

Conversation

@Algunenano
Copy link
Copy Markdown
Member

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):
...

Detailed description / Documentation draft:

Attempt to fix #31653 by generating a new random id for each query
Closes #31653 (Hopefully, since I haven't been able to reproduce it locally)

@robot-clickhouse robot-clickhouse added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 24, 2021
CLICKHOUSE_HOST = os.environ.get('CLICKHOUSE_HOST', '127.0.0.1')
CLICKHOUSE_PORT = int(os.environ.get('CLICKHOUSE_PORT_TCP', '900000'))
CLICKHOUSE_DATABASE = os.environ.get('CLICKHOUSE_DATABASE', 'default')
CLICKHOUSE_QUERY_ID = uuid.uuid4().hex
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch. By the way we can simply send empty string instead of query_id and server will take care about this (create random UUID for query_id by itself).

@alexey-milovidov alexey-milovidov self-assigned this Nov 24, 2021
@alexey-milovidov alexey-milovidov merged commit 02c2706 into ClickHouse:master Nov 25, 2021
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.

Flaky 02010_lc_native

4 participants