Added dedicated user for background operations#93905
Conversation
|
Workflow [PR], commit [9e43064] Summary: ❌
|
79610db to
70b2d49
Compare
|
Couple of TODOs.
|
e7669ac to
15f76d2
Compare
15f76d2 to
b5d8bef
Compare
The settings are given in the profile 'background'. Connectivity using such profile is possible by explicitly setting up a user. So restriction is not necessary.
done |
b5d8bef to
72d083d
Compare
72d083d to
80c824c
Compare
a792ec3 to
a31c632
Compare
|
Failures of Integration tests (amd_asan, targeted), specifically 'test_ttl_move' and its friends, is another flavour of #85011. What happens is:
For this PR we assume it as flaky and ignore it. To prove that I drafted #94853 with exactly same code, but in a clean state - those tests do not fail there. As for further actions, I self-assigned to #85011 and modified my draft #94853 to actually fix the flaky test. |
src/Interpreters/Context.h
Outdated
| bool is_background_operation = false; | ||
|
|
||
| inline static ContextPtr global_context_instance; | ||
| inline static ContextPtr background_context_instance; /// Background context is a global concept (kinda singletone for now), and this is a actual place to own it. |
There was a problem hiding this comment.
| inline static ContextPtr background_context_instance; /// Background context is a global concept (kinda singletone for now), and this is a actual place to own it. | |
| inline static ContextPtr background_context_instance; /// Background context is a global concept (kinda singletone for now), and this is an actual place to own it. |
| with pytest.raises(QueryRuntimeException): | ||
| query() |
There was a problem hiding this comment.
IMO better to use assert "expected error message" in node.query_and_get_error(query), but not important
There was a problem hiding this comment.
Thanks for the hint. The test is now updated to incorporate that
|
BTW I think would be convenient to later add something like this for background streaming operations (like s3queue, kafka, etc). |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Background operations (Mutate, Merge) can now be configured independently via 'background' profile. Previously such operations shared settings with regular queries via 'default' profile.
Closes #91845
Reverts #64456 as no longer needed.
Documentation entry for user-facing changes