Skip to content

Conversation

@smarthi
Copy link
Member

@smarthi smarthi commented Dec 30, 2019

What is the purpose of the pull request

  • Minimize the use of com.google.guava calls in Hudi

Brief changelog

  • Minimize the use of Guava Calls

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.

@smarthi smarthi requested a review from bvaradar December 30, 2019 19:35
@smarthi smarthi force-pushed the HUDI-479 branch 3 times, most recently from 5d8d12f to ac0e30e Compare December 30, 2019 22:20
@smarthi smarthi force-pushed the HUDI-479 branch 9 times, most recently from eb926a6 to 07a164f Compare December 31, 2019 09:23
@vinothchandar vinothchandar changed the title HUDI-479: Eliminate or Minimize use of Guava if possible [HUDI-479]: Eliminate or Minimize use of Guava if possible Dec 31, 2019
@vinothchandar vinothchandar changed the title [HUDI-479]: Eliminate or Minimize use of Guava if possible [HUDI-479] Eliminate or Minimize use of Guava if possible Dec 31, 2019
@vinothchandar vinothchandar self-assigned this Dec 31, 2019
@smarthi smarthi force-pushed the HUDI-479 branch 4 times, most recently from 3dd8971 to 4c1579f Compare December 31, 2019 19:54
Copy link
Member

@vinothchandar vinothchandar left a 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

@smarthi smarthi force-pushed the HUDI-479 branch 3 times, most recently from 438e849 to 9d5843c Compare December 31, 2019 22:09
@smarthi smarthi changed the title [HUDI-479] Eliminate or Minimize use of Guava if possible [WIP][HUDI-479] Eliminate or Minimize use of Guava if possible Jan 2, 2020
@smarthi smarthi force-pushed the HUDI-479 branch 3 times, most recently from b409cd8 to e296034 Compare January 2, 2020 08:11
@smarthi smarthi force-pushed the HUDI-479 branch 4 times, most recently from 0fe7466 to 41059b5 Compare March 26, 2020 00:41
@smarthi
Copy link
Member Author

smarthi commented Mar 26, 2020

@smarthi is this ready for final review? Have we eliminated Guava at this point?

@vinothchandar please review

Copy link
Member

@vinothchandar vinothchandar left a 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

Copy link
Member

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?

Copy link
Member

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();
}

@vinothchandar
Copy link
Member

@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

@smarthi
Copy link
Member Author

smarthi commented Mar 26, 2020

@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.

@smarthi smarthi force-pushed the HUDI-479 branch 2 times, most recently from 3bb4f81 to 00004ce Compare March 27, 2020 02:47
Copy link
Member

@vinothchandar vinothchandar left a 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

@vinothchandar
Copy link
Member

[INFO] There is 1 error reported by Checkstyle 8.18 with style/checkstyle.xml ruleset.
593[ERROR] src/main/java/org/apache/hudi/avro/MercifulJsonConverter.java:[33] (imports) AvoidStarImport: Using the '.*' form of import should be avoided - java.util.*.

there are check style failures? to be resolved?

@smarthi smarthi force-pushed the HUDI-479 branch 3 times, most recently from 914c6f5 to 49e5919 Compare March 27, 2020 14:49
@smarthi
Copy link
Member Author

smarthi commented Mar 27, 2020

[INFO] There is 1 error reported by Checkstyle 8.18 with style/checkstyle.xml ruleset.
593[ERROR] src/main/java/org/apache/hudi/avro/MercifulJsonConverter.java:[33] (imports) AvoidStarImport: Using the '.*' form of import should be avoided - java.util.*.

there are check style failures? to be resolved?

Resolved

@vinothchandar
Copy link
Member

If its already used elsewhere, nvm. We can deal with it later

@smarthi smarthi force-pushed the HUDI-479 branch 4 times, most recently from d586cb5 to 676fa0f Compare March 28, 2020 02:34
@smarthi smarthi merged commit 8c30013 into apache:master Mar 28, 2020
@smarthi smarthi deleted the HUDI-479 branch March 28, 2020 07:12
lyogev pushed a commit to YotpoLtd/incubator-hudi that referenced this pull request Mar 30, 2020
nsivabalan pushed a commit to nsivabalan/hudi that referenced this pull request Mar 7, 2025
… to prevent OffsetOutOfRange exception (apache#1159)

Signed-off-by: Roushan Kumar <[email protected]>
Co-authored-by: Tim Brown <[email protected]>
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.

6 participants