Repository navigation
Backport #119853 to 26.3: Fix a server crash on a NATS table whose credentials the broker rejects - #120012
Merged
Conversation
…credentials the broker rejects
Contributor
|
Workflow [BackportPR], commit [9197fad] Summary: ✅ |
The backport built and the JetStream half of the recovery passed, but the core `NATS` half consumed nothing after the table replaced the connection the client library had closed: on 26.3 only `initializeConsumersFunc` subscribes, once, on the way to the first streaming cycle, so the consumers created for the new connection stayed unsubscribed and every cycle subscribed through `NATSSource` and unsubscribed at its end, a window too short for the broker to deliver anything. Master subscribes in the streaming loop whenever the consumers are not ready; do the same here. The tests were written for master's `test_storage_nats`, which 26.3 does not have (it was removed in c250fb0 and brought back on master in 499e3a1), so bring the package files they import from master: `__init__.py`, `common.py` and `nats_certs.sh` (the cluster helper runs the latter for `with_nats=True`). Drop the tests of behaviour 26.3 does not have: `SYSTEM STOP`/`START`/ `REFRESH` on a `NATS` table (a syntax error on 26.3) and the JetStream manual-acknowledgement test (`ManualAck` is not set on 26.3, the messages are acknowledged on delivery). The remaining two tests cover the crash and the recovery for core `NATS` and JetStream and pass locally. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=120012&sha=059eccc057ab6c3644d6653e438e02f20bc8c5e4&name_0=BackportPR&name_1=Integration%20tests%20%28amd_asan%2C%20db%20disk%2C%20old%20analyzer%2C%205%2F6%29 PR: #120012 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Member
|
🕵 Adapted the backport to 26.3 in 9197fad, after the three integration failures of the first run:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #119853
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.33.85