Repository navigation
Moved utils to programs - #72426
Merged
Merged
Moved utils to programs#72426
Conversation
nikitamikhaylov
commented
Nov 25, 2024
Member
Author
There was a problem hiding this comment.
I removed this, because we have a shiny keeper-client.
Contributor
|
This is an automated comment for commit 0b53e55 with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
nikitamikhaylov
force-pushed
the
move-utils-to-programs
branch
2 times, most recently
from
November 26, 2024 17:04
7f8ef1f to
a84f0c3
Compare
nikitamikhaylov
force-pushed
the
move-utils-to-programs
branch
from
December 9, 2024 21:35
a0e53fc to
9c094a9
Compare
nikitamikhaylov
marked this pull request as ready for review
December 10, 2024 15:50
Algunenano
reviewed
Dec 10, 2024
| TRAP(gethostbyname) | ||
| TRAP(gethostbyname2) | ||
| TRAP(gethostent) | ||
| TRAP(getlogin) |
Member
There was a problem hiding this comment.
Where do we use it? It's not thread safe and can cause races with other functions:
ATTRIBUTES [top](https://man7.org/linux/man-pages/man3/getlogin.3.html#top_of_page)
For an explanation of the terms used in this section, see
[attributes(7)](https://man7.org/linux/man-pages/man7/attributes.7.html).
┌──────────────┬───────────────┬────────────────────────────────┐
│ Interface │ Attribute │ Value │
├──────────────┼───────────────┼────────────────────────────────┤
│ getlogin() │ Thread safety │ MT-Unsafe race:getlogin │
│ │ │ race:utent sig:ALRM timer │
│ │ │ locale │
├──────────────┼───────────────┼────────────────────────────────┤
│ getlogin_r() │ Thread safety │ MT-Unsafe race:utent sig:ALRM │
│ │ │ timer locale │
├──────────────┼───────────────┼────────────────────────────────┤
│ cuserid() │ Thread safety │ MT-Unsafe race:cuserid/!string │
│ │ │ locale │
└──────────────┴───────────────┴────────────────────────────────┘
In the above table, utent in race:utent signifies that if any of
the functions [setutent(3)](https://man7.org/linux/man-pages/man3/setutent.3.html), [getutent(3)](https://man7.org/linux/man-pages/man3/getutent.3.html), or [endutent(3)](https://man7.org/linux/man-pages/man3/endutent.3.html) are used
in parallel in different threads of a program, then data races
could occur. getlogin() and getlogin_r() call those functions,
so we use race:utent to remind users.
Algunenano
reviewed
Dec 10, 2024
Algunenano
left a comment
Member
There was a problem hiding this comment.
Had some question about removing functions from the harmful list. I'd rather not do it if possible
Algunenano
approved these changes
Dec 10, 2024
baibaichen
pushed a commit
to apache/gluten
that referenced
this pull request
Dec 12, 2024
Co-authored-by: kyligence-git <[email protected]> Rebase failed due to ClickHouse/ClickHouse#72426
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.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
All small utilities previously stored in
/utilsfolder and required manual compilation from sources are now a part of main ClickHouse bundle. This closes: #72404Documentation entry for user-facing changes
CI Settings (Only check the boxes if you know what you are doing):