gobblin icon indicating copy to clipboard operation
gobblin copied to clipboard

[GOBBLIN-1599] Fixes Avro usage on deprecated APIs

Open pedro93 opened this issue 3 years ago • 4 comments

Dear Gobblin maintainers,

Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!

JIRA

https://issues.apache.org/jira/browse/GOBBLIN-1599

Description

Gobblin depended on an old deprecated Avro API that worked with Jackson JsonNode objects. In Gobblin's default Avro dependency version (1.8) these APIs were already marked as deprecated. In Avro 1.9 these APIs were replaced by similar APIs that work with Object rather than JsonNode Java objects.

Tests

My PR does not need unit tests to validate whether it is working. Simply attempting to compile the project with a flag to inject avro 1.9+ (-PavroVersion=1.9.1) validates that this PR fixes the issue. Functionally the change also worked appropriately as I was able to use newer Avro versions to read events from Kafka using gobblin jobs that depended on these new versions.

Commits

  • [x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":
    1. Subject is separated from body by a blank line
    2. Subject is limited to 50 characters
    3. Subject does not end with a period
    4. Subject uses the imperative mood ("add", not "adding")
    5. Body wraps at 72 characters
    6. Body explains "what" and "why", not "how"

pedro93 avatar Jan 22 '22 18:01 pedro93

@abhisheknath2011 Please review

sv2000 avatar Feb 01 '22 18:02 sv2000

@pedro93 Can you create a ticket on Apache JIRA and link it in the PR description? Thanks.

sv2000 avatar Feb 01 '22 18:02 sv2000

Done

pedro93 avatar Feb 02 '22 19:02 pedro93

@pedro93, Thanks for sending the PR. Just wanted to update you that we are working on Avro 1.9 upgrade and some part of the work is already merged to a new branch avro_1_9. The final PR testing is current in progress. The changes in this PR are already done as part of that work. Hence, it would take couple of more weeks to merge all the changes to the master branch. As this PR is redundant, I hope you would be able to wait for couple of more weeks. Thanks.

abhisheknath2011 avatar Feb 05 '22 06:02 abhisheknath2011