Skip to content

Add Elixir libs to third party client libraries - #2159

Merged
alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
santaux:patch-1
Apr 3, 2018
Merged

alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
santaux:patch-1

Conversation

@santaux

@santaux santaux commented Apr 2, 2018

Copy link
Copy Markdown
Contributor

Update third-party_client_libraries.md with Elixir libs

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Update third-party_client_libraries.md with Elixir libs
@alexey-milovidov

Copy link
Copy Markdown
Member

Could you please add also to docs/en?

@santaux santaux changed the title Update third-party_client_libraries.md Add Elixir libs to third party client libraries Apr 3, 2018
@santaux

santaux commented Apr 3, 2018

Copy link
Copy Markdown
Contributor Author

Done

@alexey-milovidov
alexey-milovidov merged commit c527d60 into ClickHouse:master Apr 3, 2018
filimonov added a commit to filimonov/ClickHouse that referenced this pull request Sep 14, 2026
…_ERROR

A fetch-by-relink that loses the offer-to-confirm race -- the source's ref
moved (a merge, a mutation, an outdated-part drop) between the offer and
the confirm -- is a designed, fail-closed outcome: the receiver abandons
the relink and the replication queue retries, re-selecting the source and
the covering part. It was thrown as `NETWORK_ERROR`, which misdescribes it
three ways:

- both queue executors (`processQueueEntry`,
  `ReplicatedMergeTreeQueue`-driven `ReplicatedMergeMutateTaskBase`) treat
  `NETWORK_ERROR` as an unclassified failure, so every refusal printed an
  Error-level log line with a full stack trace; issue ClickHouse#2219 records a
  multi-hour false triage chasing a network fault that was never there
  (up to 53% of relink proofs refuse under small-part load);
- stateless `part_log` hygiene checks tolerate the fetch-transient class
  under the code upstream fetches use for it, `NO_REPLICA_HAS_PART`
  (e.g. `02265_column_ttl` whitelists exactly that code), so a refusal
  landing in `part_log` as `NETWORK_ERROR` fails them -- this is what
  broke `02265_column_ttl` in the CAS lanes on PR ClickHouse#2159 (13/14 reruns
  under `prefer_fetch_merged_part_size_threshold=1`);
- the label suggests retrying the transport, while the one recovery that
  is unsound here is a byte re-request to the same source.

Both relink retry-later throw sites (taxonomy row 3, the confirm refusal,
and row 5b, the unresolved promote) now throw `NO_REPLICA_HAS_PART`. The
queue behavior is unchanged -- the exception is stored on the entry,
backed off, and re-executed -- but both executors demote it to INFO with
no stack trace. Unlike `ABORTED` (the other demoted code), it keeps
`need_to_save_exception`, so a refusal storm stays visible in
`system.replication_queue`; `ABORTED`'s save-nothing shape is the known
pathology where a refusal loop runs invisibly with no backoff accounting.

`test_confirm_refuses_when_source_dropped_in_window` now pins the
classification: the refusal must not appear at Error level, must appear at
Information level, and must reach `part_log` only as
`NO_REPLICA_HAS_PART`. No message text changed; no generic queue code
changed.

Closes: Altinity#2219
Related: Altinity#2159

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Mikhail Filimonov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants