-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-479] Eliminate or Minimize use of Guava if possible #1159
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
Conversation
5d8d12f to
ac0e30e
Compare
hudi-client/src/main/java/org/apache/hudi/index/bloom/BloomIndexFileInfo.java
Outdated
Show resolved
Hide resolved
eb926a6 to
07a164f
Compare
3dd8971 to
4c1579f
Compare
vinothchandar
left a comment
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.
Thanks for the great cleanup @smarthi ! left a few minor comments
hudi-client/src/main/java/org/apache/hudi/index/bloom/BloomIndexFileInfo.java
Outdated
Show resolved
Hide resolved
hudi-client/src/main/java/org/apache/hudi/io/compact/HoodieRealtimeTableCompactor.java
Outdated
Show resolved
Hide resolved
hudi-client/src/main/java/org/apache/hudi/io/compact/HoodieRealtimeTableCompactor.java
Outdated
Show resolved
Hide resolved
hudi-client/src/main/java/org/apache/hudi/table/RollbackExecutor.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/model/HoodieKey.java
Outdated
Show resolved
Hide resolved
hudi-common/src/test/java/org/apache/hudi/common/table/TestHoodieTableMetaClient.java
Outdated
Show resolved
Hide resolved
438e849 to
9d5843c
Compare
b409cd8 to
e296034
Compare
0fe7466 to
41059b5
Compare
@vinothchandar please review |
vinothchandar
left a comment
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.
Left a few comments.. one more crank of the wheel and we should be ready to merge
hudi-cli/src/test/java/org/apache/hudi/cli/common/HoodieTestCommitMetadataGenerator.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/util/CleanerUtils.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/util/CollectionUtils.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/util/CollectionUtils.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/util/CollectionUtils.java
Outdated
Show resolved
Hide resolved
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.
did we reuse this code from somewhere?
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.
just the following in the try block?
if (closeable != null) {
closeable.close();
}
hudi-common/src/main/java/org/apache/hudi/common/util/FileIOUtils.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/util/ReflectionUtils.java
Outdated
Show resolved
Hide resolved
hudi-common/src/main/java/org/apache/hudi/common/util/ReflectionUtils.java
Outdated
Show resolved
Hide resolved
|
@smarthi The CollectionUtils IMO does not seem to reuse any code from guava actually.. it just wraps Java Streams/Collection apis in most cases.. SO we need not attribute anything in LICENSE/NOTICE.. Please clarify |
that's Correct. No attribution needed in LICENSE or NOTICe whatsoever. |
3bb4f81 to
00004ce
Compare
hudi-common/src/main/java/org/apache/hudi/common/util/FileIOUtils.java
Outdated
Show resolved
Hide resolved
vinothchandar
left a comment
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.
LGTM.. @smarthi just one pending issue in FileIOUtils . Please self merge after resolving
there are check style failures? to be resolved? |
914c6f5 to
49e5919
Compare
Resolved |
|
If its already used elsewhere, nvm. We can deal with it later |
d586cb5 to
676fa0f
Compare
… to prevent OffsetOutOfRange exception (apache#1159) Signed-off-by: Roushan Kumar <[email protected]> Co-authored-by: Tim Brown <[email protected]>
What is the purpose of the pull request
Brief changelog
Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
Committer checklist
Has a corresponding JIRA in PR title & commit
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.