Skip to content
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

[FLINK-36868] Use file system methods with string parameters via JNI #27

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

Zakelly
Copy link
Collaborator

@Zakelly Zakelly commented Dec 9, 2024

What is the purpose of the change

Currently, the ForSt core use ForStFlinkFileSystem via JNI to manipulate files in Flink. However, the parameter and return value contains Path, which introduces redundant JNI call to convert from/to std::string. The Flink will provide methods with string directly. This PR change to use those methods.

Brief change log

  • Necessary change in jni_helper.cc and env_flink.cc.

Verifying this change

This change is already covered by existing tests.

@Zakelly Zakelly requested a review from fredia December 9, 2024 12:20
@Zakelly Zakelly force-pushed the f36868 branch 2 times, most recently from 582d659 to fc782aa Compare December 9, 2024 12:39
pdillinger and others added 2 commits December 10, 2024 00:13
Summary:
Fix compatibility with transparent huge pages by allocating in increments (1MiB) smaller than the
typical smallest huge page size of 2MiB.

Also, bypass the test when jemalloc config.fill is used, which means the allocator is explicitly
configured to write to memory before we get it, which is not what this test expects.

Fixes facebook/rocksdb#12351

Pull Request resolved: facebook/rocksdb#12378

Test Plan:
```
sudo bash -c 'echo "always" > /sys/kernel/mm/transparent_hugepage/enabled'
```
And see unit test fails before this change, passes after this change

Also tested internal buck build with dbg mode (previously failing).

Reviewed By: jaykorean, hx235

Differential Revision: D54139634

Pulled By: pdillinger

fbshipit-source-id: 179accebe918d8eecd46a979fcf21d356f9b5519
(cherry picked from commit 4184921)
@Zakelly Zakelly merged commit ec001da into ververica:main Dec 10, 2024
10 checks passed
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.

3 participants