-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.5.1 #1106
Conversation
abb475e
to
756f518
Compare
756f518
to
a4dafb8
Compare
c1964fb
to
4060180
Compare
4060180
to
3ac5910
Compare
3ac5910
to
73c4ef8
Compare
73c4ef8
to
c9b7e30
Compare
c9b7e30
to
07e2413
Compare
07e2413
to
763cc64
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
I have a fix once micronaut-projects/micronaut-servlet#731 is released |
final GoogleFunctionHttpRequest<Object> req = | ||
new GoogleFunctionHttpRequest<>(request, res, conversionService, applicationContext.getBean(BodyBuilder.class)); | ||
new GoogleFunctionHttpRequest<>(request, res, conversionService, applicationContext.getBean(BodyBuilder.class), applicationContext.getBean(Executor.class, Qualifiers.byName(TaskExecutors.BLOCKING))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this bean lookup will run on every request, can you move it to the constructor like ConversionService
this.byteBody = SupplierUtil.memoized(() -> { | ||
try { | ||
return InputStreamByteBody.create( | ||
googleRequest.getInputStream(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when/how is this closed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not, but i assume it doesn't really matter for functions
Quality Gate failedFailed conditions |
The proposed approach to do the same as in micronaut-projects/micronaut-gcp#1106 did not exactly work. This is because the `InputEvent` does not allow accessing the `InputStream` directly. Instead it has a method `consumeBody(Function<InputStream>)` that should be called with implementation similar to this: ```java <T> T consumeBody(Function<InputStream, T> function) { /* verify that not null and not opened twice ... */ try { return function.call(this.body); } finally { this.body.close(); } /* ... */ } ``` Because it closes the stream we cannot read the stream gradually and split it. The solution is to read the stream as a whole into a byte array and then provide it to all the consumers. This will probably result in the same memory usage as in https://github.com/micronaut-projects/micronaut-gcp/pull/1106/files (since there we split each time and end up with one unused ByteBody caching the whole request). However, it will require reading the whole body before it is consumed (e.g. JSON parser cannot begin parsing the stream before whole body is read into memory). --------- Co-authored-by: micronaut-build <65172877+micronaut-build@users.noreply.github.com> Co-authored-by: yawkat <jonas.konrad@oracle.com>
This PR contains the following updates:
4.4.0
->4.5.1
Release Notes
micronaut-projects/micronaut-core (io.micronaut:micronaut-core-bom)
v4.5.1
What's Changed
New Features 🎉
Docs 📖
Full Changelog: micronaut-projects/micronaut-core@v4.5.0...v4.5.1
v4.5.0
: Micronaut Core v4.5.0What's Changed
New Features 🎉
Bug Fixes 🐞
Improvements ⭐
Docs 📖
Dependency updates 🚀
Regressions 🧐
Other Changes 💡
New Contributors
Full Changelog: micronaut-projects/micronaut-core@v4.4.10...v4.5.0
v4.4.10
: Micronaut Core 4.4.10What's Changed
Dependency Upgrades 🚀
Bug Fixes 🐞
Improvements ⭐
Docs 📖
Full Changelog: micronaut-projects/micronaut-core@v4.4.9...v4.4.10
v4.4.9
: Micronaut Core 4.4.9What's Changed
Bug Fixes 🐞
Full Changelog: micronaut-projects/micronaut-core@v4.4.8...v4.4.9
v4.4.8
: Micronaut Core 4.4.8What's Changed
Bug Fixes 🐞
Docs 📖
New Contributors
Full Changelog: micronaut-projects/micronaut-core@v4.4.7...v4.4.8
v4.4.7
: Micronaut Core 4.4.7What's Changed
Bug Fixes 🐞
Full Changelog: micronaut-projects/micronaut-core@v4.4.6...v4.4.7
v4.4.6
: Micronaut Core 4.4.6What's Changed
Other Changes 💡
Full Changelog: micronaut-projects/micronaut-core@v4.4.5...v4.4.6
v4.4.5
: Micronaut Core 4.4.5What's Changed
Bug Fixes 🐞
Full Changelog: micronaut-projects/micronaut-core@v4.4.4...v4.4.5
v4.4.4
: Micronaut Core 4.4.4What's Changed
Bug Fixes 🐞
Full Changelog: micronaut-projects/micronaut-core@v4.4.3...v4.4.4
v4.4.3
: Micronaut Core 4.4.3What's Changed
Bug Fixes 🐞
Full Changelog: micronaut-projects/micronaut-core@v4.4.2...v4.4.3
v4.4.2
: Micronaut Core 4.4.2What's Changed
Full Changelog: micronaut-projects/micronaut-core@v4.4.1...v4.4.2
v4.4.1
: Micronaut Core 4.4.1What's Changed
Dependency Upgrades 🚀
KSP
Micronaut Modules
Full Changelog: micronaut-projects/micronaut-core@v4.4.0...v4.4.1
Configuration
📅 Schedule: Branch creation - "after 10pm" in timezone Europe/Prague, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.