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

Remove dependency on AWS S3 SDKv1 #1628

Merged
merged 4 commits into from
Aug 10, 2022
Merged

Remove dependency on AWS S3 SDKv1 #1628

merged 4 commits into from
Aug 10, 2022

Conversation

jzonthemtn
Copy link
Contributor

Description

This PR removes the dependency on the AWS S3 SDKv1. It does not include any new functionality and hopefully should not affect current functionality.

Issues Resolved

#1562

Check List

  • New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@jzonthemtn jzonthemtn requested a review from a team as a code owner July 29, 2022 15:51
Copy link
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jeff for making these changes! I made a few small comments. It will be good to remove the SDK v1 entirely from Data Prepper once this is in!

if (json == null) {
return null;
}
System.out.println("Json = " + json);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should remove any calls to System.out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My terrible debugging! :)

/**
* A Jackson serializer for Joda {@code DateTime}s.
*/
public final class DateTimeJsonSerializer extends JsonSerializer<Date> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make this class package protected by removing the public modifier. This will help avoid use of this class where it is not intended to be used.

@codecov-commenter
Copy link

codecov-commenter commented Aug 10, 2022

Codecov Report

Merging #1628 (d9a4cbf) into main (31bf29b) will decrease coverage by 0.66%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #1628      +/-   ##
============================================
- Coverage     94.48%   93.81%   -0.67%     
- Complexity     1160     1272     +112     
============================================
  Files           159      167       +8     
  Lines          3316     3652     +336     
  Branches        268      292      +24     
============================================
+ Hits           3133     3426     +293     
- Misses          129      157      +28     
- Partials         54       69      +15     
Impacted Files Coverage Δ
...dataprepper/model/configuration/PipelineModel.java 100.00% <0.00%> (ø)
...h/dataprepper/logstash/mapping/LogstashMapper.java 100.00% <0.00%> (ø)
...rwarder/discovery/AwsCloudMapPeerListProvider.java 95.12% <0.00%> (ø)
...aprepper/peerforwarder/PeerForwarderAppConfig.java 100.00% <0.00%> (ø)
...eerforwarder/discovery/StaticPeerListProvider.java 100.00% <0.00%> (ø)
...r/peerforwarder/discovery/DnsPeerListProvider.java 100.00% <0.00%> (ø)
...prepper/peerforwarder/discovery/DiscoveryMode.java 88.88% <0.00%> (ø)
...repper/peerforwarder/discovery/DiscoveryUtils.java 0.00% <0.00%> (ø)
...pper/peerforwarder/PeerForwarderReceiveBuffer.java 74.54% <0.00%> (ø)
...pper/peerforwarder/PeerForwarderConfiguration.java 83.82% <0.00%> (ø)
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@dlvenable dlvenable merged commit 7d94832 into opensearch-project:main Aug 10, 2022
@dlvenable
Copy link
Member

Thanks @jzonthemtn for providing this fix! I'm glad to see the AWS SDK v1 removed entirely now.

engechas pushed a commit to engechas/data-prepper that referenced this pull request Sep 12, 2022
* opensearch-project#1562: Working toward removing dependency.

Signed-off-by: jzonthemtn <[email protected]>

* opensearch-project#1562: Removing unneeded parts. Changing date processing.

Signed-off-by: jzonthemtn <[email protected]>

* opensearch-project#1562: Adding file header and comment.

Signed-off-by: jzonthemtn <[email protected]>

* opensearch-project#1562: Removing sysout and removing public from class.

Signed-off-by: jzonthemtn <[email protected]>

Signed-off-by: jzonthemtn <[email protected]>
@dlvenable dlvenable mentioned this pull request Oct 19, 2022
4 tasks
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