-
Notifications
You must be signed in to change notification settings - Fork 616
HDDS-10149. New JNI layer for RawSSTFileReader & RawSSTFileReaderIterator #6182
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
Merged
Merged
Changes from 32 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
4d60dc7
HDDS-10149. Fix native lib to not include rocksdb library as static l…
swamirishi 2dc7c0b
HDDS-10149. Fix checkstyle
swamirishi 824678d
HDDS-10149. Test
swamirishi f2a7869
HDDS-10149. New JNI layer containing new rawSstFileReader on rocksdb …
swamirishi f25a570
HDDS-10149. Remove usage of managed sst dump tool
swamirishi a11705a
HDDS-10149. Fix findbugs & rat check
swamirishi c80234d
HDDS-10149. Fix findbugs
swamirishi 406db5b
HDDS-10149. Fix checkstyle
swamirishi 41d557d
HDDS-10149. Fix cpp shadow error
swamirishi f9dcb2e
HDDS-10149. Fix native
swamirishi 194c8af
HDDS-10149. Fix native
swamirishi 09e640c
HDDS-10149. Fix native
swamirishi bbb15ad
HDDS-10149. Debug native failure
swamirishi dd78c1e
HDDS-10149. Debug native failure
swamirishi 2d2c8f6
HDDS-10149. Fix test cases
swamirishi be7faa3
HDDS-10149. Remove debug flag
swamirishi 5a64230
HDDS-10149. Adding log
swamirishi f4aa7ec
HDDS-10149. Fix bug
swamirishi 0e1f50d
HDDS-10149. Add log
swamirishi 209c258
HDDS-10149. Add ssh session
swamirishi 2e08516
Revert "HDDS-10149. Fix bug"
swamirishi 1a8ac2b
Revert "HDDS-10149. Add ssh session"
swamirishi b3d101e
Revert "HDDS-10149. Add log"
swamirishi 5cd071c
HDDS-10149. Fix native library compile issue for gcc>=5
swamirishi ef4b147
HDDS-10149. Mark integration test healthy
swamirishi f324d32
HDDS-10149. Fix checkstyle
swamirishi 76a5df6
HDDS-10149. Fix SnapshotDiffManager
swamirishi b5d4646
HDDS-10149. Fix TestSnapshotDiffManager::testGetSnapshotDiffReportJob
swamirishi 66921e9
HDDS-10149. Unmark unhealthy snapshots native tests
swamirishi 8cc3df4
Merge remote-tracking branch 'apache/master' into HEAD
swamirishi c0752e1
HDDS-10149. Fix checkstyle
swamirishi da80339
HDDS-10149. Fix testcase
swamirishi 03f22f9
HDDS-10149. Address review comments
swamirishi 2d70537
HDDS-10149. Fix checkstyle within patch file
swamirishi 4c3890b
HDDS-10149. Remove unwanted classes and tools from rocks tools
swamirishi 8a1b0bb
HDDS-10149. Remove unwanted classes and tools from rocks tools
swamirishi 1ab1bc6
HDDS-10149. Change Function definitions & imports for raw_sst_file_it…
swamirishi a36487b
HDDS-10149. Address review comments
swamirishi 9b48779
HDDS-10149. Address review comments
swamirishi c4ee8c8
HDDS-10149. Address review comments
swamirishi 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 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
48 changes: 48 additions & 0 deletions
48
...cksdb/src/main/java/org/apache/hadoop/hdds/utils/db/managed/JniLibNamePropertyWriter.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * <p> | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * <p> | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| package org.apache.hadoop.hdds.utils.db.managed; | ||
|
|
||
| import org.rocksdb.util.Environment; | ||
|
|
||
| import java.io.IOException; | ||
| import java.io.OutputStreamWriter; | ||
| import java.io.Writer; | ||
| import java.nio.charset.StandardCharsets; | ||
| import java.nio.file.Files; | ||
| import java.nio.file.Paths; | ||
|
|
||
| /** | ||
| * Class to write the rocksdb lib name to a file. | ||
| * This would be used to build native ozone_rocksdb_tools library. | ||
| */ | ||
| public final class JniLibNamePropertyWriter { | ||
|
|
||
| private JniLibNamePropertyWriter() { | ||
| } | ||
|
|
||
| public static void main(String[] args) { | ||
| String filePath = args[0]; | ||
| try (Writer writer = new OutputStreamWriter( | ||
| Files.newOutputStream(Paths.get(filePath)), StandardCharsets.UTF_8)) { | ||
| writer.write("rocksdbLibName=" + | ||
| Environment.getJniLibraryFileName("rocksdb")); | ||
| } catch (IOException e) { | ||
| e.printStackTrace(); | ||
| } | ||
| } | ||
| } |
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
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.
Uh oh!
There was an error while loading. Please reload this page.