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

Logs are sent over network not instantly. #64012

Open
alexey-milovidov opened this issue May 17, 2024 · 2 comments
Open

Logs are sent over network not instantly. #64012

alexey-milovidov opened this issue May 17, 2024 · 2 comments

Comments

@alexey-milovidov
Copy link
Member

Use case

When I do a query like

SELECT count() FROM merge('^text_log') WHERE pull_request_number = 63933 SETTINGS send_logs_level = 'trace'

The logs appear on the client, not as soon as they appear on the server. They are probably not flushed every time.

@azat
Copy link
Collaborator

azat commented May 17, 2024

The problem could be due to that some queries (i.e. SYSTEM/BACKUP/RESTORE) returns one block after everything is done, and so TCPHandler (clickhouse-server) do not poll for the logs in the mean time, only when new blocks arrived

@alexey-milovidov
Copy link
Member Author

@azat It happens because the time is spent inside executeQuery, which is run in the foreground.
A solution could be - filter by secondary indices during query runtime instead of during planning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants