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

Proper streaming ByteBody implementation #720

Merged
merged 8 commits into from
May 31, 2024
Merged

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented May 31, 2024

With splitting and everything.

After this, we can look at making some more binders between netty and servlet common, in particular the NettyBodyAnnotationBinder.

renovate bot and others added 5 commits May 30, 2024 15:53
With splitting and everything.

After this, we can look at making some more binders between netty and servlet common, in particular the NettyBodyAnnotationBinder.
…byte-body

# Conflicts:
#	servlet-engine/src/main/java/io/micronaut/servlet/engine/DefaultServletHttpRequest.java
@yawkat yawkat added the type: improvement A minor improvement to an existing feature label May 31, 2024
@yawkat yawkat requested review from graemerocher and dstepanov May 31, 2024 08:49
Copy link
Contributor

@graemerocher graemerocher left a comment

Choose a reason for hiding this comment

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

Make sure you have high test coverage for all of these changes

*/
public DefaultServletHttpHandler(ApplicationContext applicationContext, ConversionService conversionService) {
public DefaultServletHttpHandler(ApplicationContext applicationContext, ConversionService conversionService, @Named(TaskExecutors.BLOCKING) Executor ioExecutor) {
Copy link
Contributor

Choose a reason for hiding this comment

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

these should seems specific to Servlet, how will this work with GCP/AWS where we have the failing tests now?

Copy link
Member Author

Choose a reason for hiding this comment

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

I searched for DefaultServletHttpRequest in micronaut-projects and this was the only usage, so I assume GCP/AWS still go through this handler

Copy link
Contributor

Choose a reason for hiding this comment

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

AWS and GCP don't depend on servlet-engine

@yawkat
Copy link
Member Author

yawkat commented May 31, 2024

Re coverage: StreamPair is the complicated code here, and I tried to cover it pretty well. The rest of the code is covered by TCK tests

@yawkat
Copy link
Member Author

yawkat commented May 31, 2024

sonar is broken unfortunately

@graemerocher
Copy link
Contributor

seems to be working now, please address the sonar issues

Copy link

sonarqubecloud bot commented May 31, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
56.8% Coverage on New Code (required ≥ 70%)

See analysis details on SonarCloud

@graemerocher graemerocher merged commit 749ed8e into 4.9.x May 31, 2024
14 of 15 checks passed
@graemerocher graemerocher deleted the stream-byte-body branch May 31, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants