Skip to content

Rename Ssl to SSL in SocketPeerClosed helpers - #111018

Merged
alexey-milovidov merged 6 commits into
ClickHouse:masterfrom
groeneai:groeneai-rename-ssl-socket-state
Jul 25, 2026
Merged

alexey-milovidov merged 6 commits into
ClickHouse:masterfrom
groeneai:groeneai-rename-ssl-socket-state

Conversation

@groeneai

@groeneai groeneai commented Jul 19, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

...

Description

Follow-up to #110402 as requested: rename the two helper identifiers it added
from the mixed-case Ssl spelling to the all-caps SSL initialism used
throughout the codebase (SSLException, SSLManager, getSSLCertificateSubjects, ...):

  • getSslSocketState -> getSSLSocketState
  • isSslPeerClosed -> isSSLPeerClosed

Both live only in src/IO/SocketPeerClosed.{h,cpp} and its unit test; no other
code references them. Pure rename, no behavior change. gtest_socket_peer_closed
passes (11/11).

Version info

  • Merged into: 26.8.1.121 (included in 26.8 and later)

Follow-up to ClickHouse#110402: rename getSslSocketState -> getSSLSocketState and
isSslPeerClosed -> isSSLPeerClosed to match the all-caps SSL initialism
used across the codebase. Pure rename, no behavior change.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? N/A - no failure; pure identifier rename.
b Root cause explained? N/A - not a bug. Motivation: naming-convention consistency (all-caps SSL) requested on #110402.
c Fix matches root cause? Yes - the diff is exactly the rename of the two Ssl identifiers #110402 added, nothing more.
d Test intent preserved / new tests? Preserved. gtest_socket_peer_closed updated only for the renamed symbol names; assertions/logic unchanged. 11/11 pass. No new test needed (no behavior change).
e Demonstrated both directions? N/A - nothing to demonstrate; verified by clean compile + passing tests.
f Fix is general, not a narrow patch? Yes - renamed ALL occurrences of both symbols; git grep confirms zero old-name references remain and no callers exist outside the 3 files. Deliberately NOT renamed: the lowercase ssl() Poco accessor (idiomatic getter, not the Ssl spelling) and pre-existing gRPC Ssl* symbols #110402 did not introduce.
g Generalizes across inputs/types? N/A - rename, no input/type surface.
h Backward compatible? Yes - internal C++ symbol names only; not part of any wire/disk/setting/ABI surface. No SettingsChangesHistory impact.
i Invariants/contracts preserved? Yes - no logic touched; signatures, semantics, and call sites unchanged apart from the name.

Verification: 3 affected objects recompile cleanly from renamed source; unit_tests_dbms links; gtest_socket_peer_closed 11/11 PASS (incl. 6 Secure* TLS tests exercising both renamed symbols).

Session id: cron:clickhouse-author-slot-1:20260719-211400

@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review - adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 1 finding; bounded: 1 full pass + 1 fix round + 1 delta recheck).

# Sev Finding Verdict Evidence / action
1 ⚠️ .meta.json (task-runner metadata) is in the diff and should be removed DISAGREE git show --stat HEAD lists ONLY the 3 source files; git ls-files --error-unmatch .meta.json reports it is untracked; it was never staged or committed and cannot enter the PR (changedFiles=3 on the PR confirms this). It is a local worktree runtime file. Removed it anyway as belt-and-suspenders.

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal per finding. Findings on hunks unchanged by the fix round are auto-dropped.

Session id: cron:clickhouse-author-slot-1:20260719-211400

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @vitlibar - could you review this? Trivial follow-up to #110402 (@ alexey-milovidov's merged PR): renames the two helpers it added, getSslSocketState -> getSSLSocketState and isSslPeerClosed -> isSSLPeerClosed, to the all-caps SSL spelling used across the codebase. Pure rename, no behavior change; gtest_socket_peer_closed passes 11/11.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Jul 19, 2026
@alexey-milovidov alexey-milovidov self-assigned this Jul 19, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [984c21a]

Summary: ✅


AI Review

Summary

This PR is still a pure internal rename of getSslSocketState / isSslPeerClosed to getSSLSocketState / isSSLPeerClosed in SocketPeerClosed and its unit test. The current branch matches that contract: the diff only changes those identifiers, no stale references to the old names remain in the tree, and the latest Praktika report for commit 984c21a903d3311ba6e437503ef485b6ab91457f has no failed jobs.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 20, 2026
Comment thread src/IO/SocketPeerClosed.h Resolved
@alexey-milovidov

Copy link
Copy Markdown
Member

The only red check, Stress test (arm_release), is unrelated to this rename: the server fails to restart with Code: 246 (Part all_2_3_1_0 intersects previous part all_1_2_2_1 and the transaction metadata of at least one of them could not be read) on table t_plt_reparent left behind by 04063_part_loading_tree_rollback_reparent. A fix is already in progress: #110999 (pins the part_loading_tree_rollback tests to the local default storage policy).

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — bf83ef1

Every failure below has an owner. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stress test (arm_release) / Cannot start clickhouse-server (Code 246: Part all_2_3_1_0 intersects previous part all_1_2_2_1, transaction metadata could not be read) flaky (chronic trunk: 30 distinct PRs / 35 hits / 1 master in 7d; structurally unrelated to this Ssl->SSL identifier rename) a fix task is moved to pending (investigating at full effort; fixing-PR link to follow here)
CH Inc sync - CH Inc sync (private, not actionable by us)

Session id: cron:our-pr-ci-monitor:20260720-083000

@groeneai

Copy link
Copy Markdown
Collaborator Author

Correction to the owner column above: the t_plt_reparent Code 246 "Part intersects previous part / transaction metadata could not be read" stress-restart boot failure has an open fixing PR: #110999 (ours, open) - it pins the four part_loading_tree_rollback tests (04063/04241/04417/04500, added by #100992) to a local default disk so their raw-cp fabricated txn_version.txt cannot poison an object-storage restart. That is the exact sub-signature seen here. Not PR-caused by this Ssl->SSL rename.

Session id: cron:our-pr-ci-monitor:20260720-083000

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog and removed pr-ci labels Jul 21, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

Merged master (2930cd0) to clear the Upgrade check (amd_release) reds, all unrelated to this rename:

The PR diff is still exactly the three-file rename.

@alexey-milovidov

Copy link
Copy Markdown
Member

Merged master (984c21a) to clear the reds on commit 2930cd07, all unrelated to this rename:

The diff is still exactly the 3-file rename in src/IO/SocketPeerClosed.{h,cpp} and its unit test; no stray Ssl identifiers remain.

@clickhouse-gh

clickhouse-gh Bot commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.30% 86.20% -0.10%
Functions 92.00% 92.00% +0.00%
Branches 78.40% 78.30% -0.10%

Changed lines: Changed C/C++ lines covered: 34/34 (100.00%) · Uncovered code

Full report · Diff report

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jul 25, 2026
Merged via the queue into ClickHouse:master with commit 5899f2d Jul 25, 2026
178 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 25, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…l-socket-state

Rename Ssl to SSL in SocketPeerClosed helpers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-not-for-changelog This PR should not be mentioned in the changelog 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.

3 participants