Skip to content

Fix Java 11 build #1139

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 4 commits into from
Mar 19, 2019
Merged

Fix Java 11 build #1139

merged 4 commits into from
Mar 19, 2019

Conversation

zoewangg
Copy link
Contributor

@zoewangg zoewangg commented Mar 15, 2019

Description

Root cause is an known issue in wiremock with Java 11 wiremock/wiremock#1009. Changed CONNECTION_RESET_BY_PEER to RANDOM_DATA_THEN_CLOSE instead to fix the test.

  • Fix false positive bugs reported by spotbugs

  • Update travis script to run java 11 for obvious reasons.

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • A short description of the change has been added to the CHANGELOG
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license


# Set up logging implementation
org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
org.eclipse.jetty.LEVEL=WARN
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: How much extra logging will this create? Just worried about the log size in Travis

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will change it to OFF

@zoewangg
Copy link
Contributor Author

The test is happy but spotbugs failed :(

@codecov-io
Copy link

codecov-io commented Mar 16, 2019

Codecov Report

Merging #1139 into master will decrease coverage by 0.06%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1139      +/-   ##
============================================
- Coverage     58.82%   58.75%   -0.07%     
+ Complexity     4566     4556      -10     
============================================
  Files           742      742              
  Lines         22895    22941      +46     
  Branches       1707     1713       +6     
============================================
+ Hits          13468    13480      +12     
- Misses         8735     8772      +37     
+ Partials        692      689       -3
Impacted Files Coverage Δ Complexity Δ
.../interceptor/ClasspathInterceptorChainFactory.java 10% <0%> (-0.42%) 5 <0> (ø)
.../netty/internal/UnusedChannelExceptionHandler.java 18.75% <0%> (-18.75%) 2% <0%> (-1%)
...nio/netty/internal/OldConnectionReaperHandler.java 81.81% <0%> (-9.1%) 12% <0%> (-3%)
...tomization/CodegenCustomizationProcessorChain.java 81.81% <0%> (-8.19%) 5% <0%> (ø)
...on/awssdk/protocols/ion/AwsIonProtocolFactory.java 72.72% <0%> (-5.06%) 5% <0%> (ø)
...wssdk/http/nio/netty/internal/ResponseHandler.java 63.05% <0%> (-4.69%) 15% <0%> (-4%)
...ftware/amazon/awssdk/codegen/internal/Jackson.java 59.09% <0%> (-2.82%) 3% <0%> (ø)
.../software/amazon/awssdk/core/sync/RequestBody.java 75% <0%> (-2.78%) 13% <0%> (ø)
...on/awssdk/codegen/internal/DocumentationUtils.java 74.19% <0%> (-2.48%) 16% <0%> (ø)
...k/codegen/poet/client/specs/QueryProtocolSpec.java 66% <0%> (-1.35%) 8% <0%> (ø)
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b780909...98be964. Read the comment docs.

@zoewangg zoewangg force-pushed the zoewang-fix11 branch 8 times, most recently from e94b7b2 to 27fd9c1 Compare March 19, 2019 01:13
@zoewangg zoewangg changed the title Fix failed test with JDK11 Fix Java 11 build Mar 19, 2019
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom-internal</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this need the BOM?

Copy link
Contributor Author

@zoewangg zoewangg Mar 19, 2019

Choose a reason for hiding this comment

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

This is something I tried to make it build with CodeBuild on this module. After this change, this module can be built successfully but other module fails of the same reason "Connection Reset". I can remove this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah okay. Yeah let's remove it for now, this module shouldn't need it.

@dagnir dagnir self-requested a review March 19, 2019 17:06
Add find bug suppress warnings for false positive bug found by findbug
@zoewangg zoewangg merged commit 9f5ae80 into master Mar 19, 2019
@zoewangg zoewangg deleted the zoewang-fix11 branch April 3, 2019 03:35
@dagnir dagnir mentioned this pull request Apr 29, 2019
12 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.

4 participants