-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(java_binding): fix java binding TLS allocation failure #12862
Merged
chenzl25
merged 10 commits into
main
from
dylan/fix_java_binding_TLS_allocation_failure
Oct 17, 2023
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fe6820b
fix
chenzl25 7cdf801
Merge branch 'main' into dylan/fix_java_binding_TLS_allocation_failure
chenzl25 9cf03ff
Merge remote-tracking branch 'origin/main' into dylan/fix_java_bindin…
chenzl25 2292ba0
add disable_initial_exec_tls feature to common
chenzl25 961c4d0
Fix "cargo-hakari"
chenzl25 7612fe1
fix
chenzl25 b004840
Revert "fix"
chenzl25 6dd7710
fix hakari
chenzl25 f8f7831
move common/heap_profiling to a separate crate
xxchan 3c037ff
fix
xxchan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this will be enabled in the binary level, so all crates will be affected. Maybe you can directly add it here if it's expected.
risingwave/Cargo.toml
Line 119 in d2ec83c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disable_initial_exec_tls will only be enabled when build java binding, will it still affect rw binary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't true, as it's unified by hakari. You need to exclude
tikv-jemalloc-ctl
orrisingwave_java_binding
completely from hakari if you want to do so.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to enable the
disable_initial_exec_tls
feature only when we build the Java dynamic library. In other cases, the default feature is ok.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A little explanation: hakari tries to help you use the same feature sets regardless of what pkg you use in
cargo build -p <pkg>
, in order to avoid re-compilation. But you want exactly the reverse here: turn on different features for different pkgs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do think so, let me try. Not quite familiar with hakari before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, I find
java_binding
does not utilize jemalloc at all but suffers from its issue. It might not be be a good idea forcommon
to depend onjemalloc
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Storage depends on jemalloc profiling, which has to depend on jemalloc. We may need to remove the profiling from compactor to address this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to remove it from common (to
risingwave_common_heap_profiling
). #11665This comment was marked as resolved.
Sorry, something went wrong.