-
Notifications
You must be signed in to change notification settings - Fork 919
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
Add release note for 1.31.0 #5970
base: main
Are you sure you want to change the base?
Conversation
jrhee17
commented
Nov 7, 2024
•
edited
Loading
edited
.build(); | ||
|
||
// return a TlsKeyPair dynamically | ||
TlsKeyPair tlsKeyPair = hostname -> TlsKeyPair.of(...); |
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.
TlsKeyPair tlsKeyPair = hostname -> TlsKeyPair.of(...); | |
TlsProvider tlsProvider = hostname -> TlsKeyPair.of(...); |
- You can customize how in-flight requests are terminated during server shutdown by specifying a <type://GracefulShutdown>. #5941 | ||
```java | ||
GracefulShutdown gracefulShutdown = | ||
GracefulShutdown.builder() | ||
.shutdownErrorFunction((ctx, req) -> { | ||
logger.info("Not gracefully terminated!"); | ||
return new MyException(); | ||
}) | ||
.build(); | ||
|
||
Server | ||
.builder() | ||
.gracefulShutdown(gracefulShutdown); | ||
``` |
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.
I removed this PR from 1.31.0
- You can customize how in-flight requests are terminated during server shutdown by specifying a <type://GracefulShutdown>. #5941 | |
```java | |
GracefulShutdown gracefulShutdown = | |
GracefulShutdown.builder() | |
.shutdownErrorFunction((ctx, req) -> { | |
logger.info("Not gracefully terminated!"); | |
return new MyException(); | |
}) | |
.build(); | |
Server | |
.builder() | |
.gracefulShutdown(gracefulShutdown); | |
``` |
ResponseEntity response = ResponseEntity.of(200); | ||
ResponseEntity response = ResponseEntity.of("Hello!"); |
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.
ResponseEntity response = ResponseEntity.of(200); | |
ResponseEntity response = ResponseEntity.of("Hello!"); | |
ResponseEntity<Object> response = ResponseEntity.of(200); | |
ResponseEntity<String> response = ResponseEntity.of("Hello!"); |
- An experimental `micrometer-context` module has been added. You can propagate <type://RequestContext> via [Project Reactor](https://projectreactor.io/)'s `Context`. #5145 #5577 | ||
```java | ||
ContextRegistry | ||
.getInstance() | ||
.registerThreadLocalAccessor(new RequestContextThreadLocalAccessor()); | ||
Hooks.enableAutomaticContextPropagation(); | ||
``` |
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.
Could we remove this from the release notes since it is excluded from the publish?
|
||
## 🏚️ Deprecations | ||
|
||
- <type://ServerBuilder#gracefulShutdownTimeout(Duration,Duration)> has been deprecated in favor of <type://ServerBuilder#gracefulShutdown(GracefulShutdown)>. |
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.
Ditto.
- <type://ServerBuilder#gracefulShutdownTimeout(Duration,Duration)> has been deprecated in favor of <type://ServerBuilder#gracefulShutdown(GracefulShutdown)>. |
- Jetty | ||
- 11.0.22 → 11.0.24 | ||
- 12.0.12 → 12.0.14 |
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.
- Jetty | |
- 11.0.22 → 11.0.24 | |
- 12.0.12 → 12.0.14 | |
- Jetty | |
- 11.0.22 → 11.0.24 | |
- 12.0.12 → 12.0.14 |
- Scala | ||
- 2.12.19 → 2.12.20 | ||
- 2.13.14 → 2.13.15 | ||
- 3.4.2 → 3.6.1 |
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.
- Scala | |
- 2.12.19 → 2.12.20 | |
- 2.13.14 → 2.13.15 | |
- 3.4.2 → 3.6.1 | |
- Scala | |
- 2.12.19 → 2.12.20 | |
- 2.13.14 → 2.13.15 | |
- 3.4.2 → 3.6.1 |
- Tomcat | ||
- 9.0.91 → 9.0.96 | ||
- 10.1.26 → 10.1.31 |
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.
- Tomcat | |
- 9.0.91 → 9.0.96 | |
- 10.1.26 → 10.1.31 | |
- Tomcat | |
- 9.0.91 → 9.0.96 | |
- 10.1.26 → 10.1.31 |
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.
👍 👍 👍
|
||
## 🌟 New features | ||
|
||
- You can now set TLS configurations dynamically using `TlsProvider` #5033 #5228 |
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.
- You can now set TLS configurations dynamically using `TlsProvider` #5033 #5228 | |
- You can now set TLS configurations dynamically using <type://TlsProvider>. #5033 #5228 |
```java | ||
ServiceRequestContext ctx = ...; | ||
String rawPath = ctx.rawPath(); | ||
``` |
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.
``` |
NacosUpdatingListener.builder(nacosUri, "my-service") | ||
... | ||
.build()); | ||
``` |
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.
``` |
## 📈 Improvements | ||
|
||
- The GraalVM native image metadata has been updated to reflect recent code changes. #5946 | ||
- <type://XdsEndpointGroup> now supports `disable_active_health_check` #5879 |
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.
- <type://XdsEndpointGroup> now supports `disable_active_health_check` #5879 | |
- <type://XdsEndpointGroup> now supports `disable_active_health_check`. #5879 |
- 9.0.91 → 9.0.96 | ||
- 10.1.26 → 10.1.31 | ||
|
||
## 🗑 Maybe ignore |
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.
Remove?
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.
Thanks! @jrhee17. 🙇♂️🙇♂️
Co-authored-by: Ikhun Um <ih.pert@gmail.com>
|
||
## 🌟 New features | ||
|
||
- You can now set TLS configurations dynamically using <type://TlsProvider> #5033 #5228 |
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.
- How about 'update' instead of 'set'?
- No more bold keywords for each item?