Skip to content

add a list of tables to flush in FLUSH ASYNC QUEUE#89915

Merged
CheSema merged 3 commits intomasterfrom
chesema-flush-async-queue-for-table
Nov 13, 2025
Merged

add a list of tables to flush in FLUSH ASYNC QUEUE#89915
CheSema merged 3 commits intomasterfrom
chesema-flush-async-queue-for-table

Conversation

@CheSema
Copy link
Copy Markdown
Member

@CheSema CheSema commented Nov 12, 2025

Changelog category (leave one):

  • Improvement

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

added a possibility to set a list of tables to flush in command system flush async insert queue.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@CheSema
Copy link
Copy Markdown
Member Author

CheSema commented Nov 12, 2025

It is needed for #89140

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Nov 12, 2025

Workflow [PR], commit [8731fbd]

Summary:

job_name test_name status info comment
PR formatter failure
check output failure cidb
Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, parallel) failure
02995_index_6 FAIL cidb
Stateless tests (amd_tsan, s3 storage, parallel) failure
03652_memory_usage_headers FAIL cidb
Stress test (amd_ubsan) failure
Server died FAIL cidb
Hung check failed, possible deadlock found (see hung_check.log) FAIL cidb
Killed by signal (in clickhouse-server.log) FAIL cidb
Fatal message in clickhouse-server.log (see fatal_messages.txt) FAIL cidb
Killed by signal (output files) FAIL cidb
Found signal in gdb.log FAIL cidb
BuzzHouse (amd_debug) failure
Buzzing result failure cidb

@clickhouse-gh clickhouse-gh bot added the pr-improvement Pull request with some product improvements label Nov 12, 2025
@Algunenano Algunenano self-assigned this Nov 12, 2025
Copy link
Copy Markdown
Member

@antaljanosbenjamin antaljanosbenjamin left a comment

Choose a reason for hiding this comment

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

I will leave this PR to @Algunenano as github didn't handle the parallel lock properly, but I will leave my already written comments.

auto database_table_name_set = std::set<std::pair<String, String>>{};
for (const auto & full_table_name : table_names)
{
auto dot_pos = full_table_name.find('.');
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.

Will this work with quoted names, e.g.: `this.is.a.valid.databasename`.table?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good point, will add a test.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It does not work unfortunatly

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

But I'm making it work.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

@CheSema CheSema force-pushed the chesema-flush-async-queue-for-table branch from 47d9c59 to 96b097d Compare November 12, 2025 16:06
@CheSema CheSema force-pushed the chesema-flush-async-queue-for-table branch from 96b097d to 37610b0 Compare November 12, 2025 16:25
@CheSema
Copy link
Copy Markdown
Member Author

CheSema commented Nov 13, 2025

Stress test (amd_ubsan)
Fatal message in clickhouse-server.log (see fatal_messages.txt)
-- #89987

Stateless tests (amd_binary, old analyzer, s3 storage, DatabaseReplicated, parallel)
02995_index_6
-- #89849

@CheSema CheSema added this pull request to the merge queue Nov 13, 2025
Merged via the queue into master with commit 1f3e7d5 Nov 13, 2025
123 of 130 checks passed
@CheSema CheSema deleted the chesema-flush-async-queue-for-table branch November 13, 2025 14:26
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 13, 2025
xiaohuanlin added a commit to xiaohuanlin/ClickHouse that referenced this pull request Apr 10, 2026
Adds a new top-level config option `replica_host` that specifies the
hostname other replicas should use to reach this server. This is useful
when the FQDN returned by `getFQDNOrHostName()` or `interserver_http_host`
does not match the hostname used for inter-replica communication (e.g.
in containerized or NATed environments).

Fallback chain in `getHostID`:
1. `replica_host` (if configured)
2. `interserver_http_host` (existing behavior)

Closes ClickHouse#89915
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants