0.98.3 release notes
25th February 2020
🌟 New features
RequestContextExporter
andRequestContextExportingAppender
for Logback can now export the current request ID into MDC. #2511<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>%d{HH:mm:ss.SSS} %X{req.id} %msg%n</pattern> </encoder> </appender> <appender name="RCEA" class="com.linecorp.armeria.common.logback.RequestContextExportingAppender"> <appender-ref ref="CONSOLE" /> <export>req.id</export> </appender> </configuration>
- Client-side options API (
ClientOption
andClientFactoryOption
) has been revamped. #2523ClientOptions.get()
andClientFactoryOptions.get()
never throw an exception. A default value is returned for an unspecified option. Therefore, other getter methods such asgetOrElse()
have been removed.
📈 Improvements
- You'll now get a
ClosedStreamException
instead ofHttp2Exception
when your HTTP/2 connection was closed due to anRST_STREAM
frame. #2508
🛠️ Bug fixes
*ClientBuilder.options(ClientOptions)
now overrides only the specified options. #2516ClientFactory factory = ClientFactory.insecure(); ClientOptions options = ClientOptions.builder() .responseTimeMillis(5000) .build(); WebClient client = WebClient.builder("http://foo.com") .factory(factory) .options(options) .build(); // This assertion does not fail anymore. assert client.options().factory() == ClientFactory.insecure();
- Fixed a bug where
DocService
throws thejava.lang.IllegalStateException: zip file closed
exception while starting up. #2518 #2519 MetricCollectingClient
does not count the request that failed initially due to aconnection refused
error and then succeeded after a retry as failure anymore. #2517- Fixed a bug where
LoggingClient
andLoggingSerivce
does not push the current context when logging. #2528 RequestContextExporter
andRequestContextExportingAppender
can now export a single custom attribute into multiple MDC properties. #2521RequestContextExporter
andRequestContextExportingAppender
does not export outdated custom attributes anymore. #2520- Renamed incorrect meter ID
armeria.server.pendingResponses
intoarmeria.server.pending.responses
. #2506 - The
Date
header is now encoded properly even whenSystem.nanoTime()
returns a negative value. #2530 GrpcStatus.fromThrowable()
now treatsContentTooLargeException
asRESOURCE_EXHAUSTED
rather thanINTERNAL_ERROR
. #2523
☢️ Breaking changes
ClientOptions.getOrElse()
andgetOrNull()
have been removed.get()
always returns a non-null value now. #2523ClientOptions.asMap()
andClientFactoryOptions.asMap()
now return only the options overridden by a user. You can get theSet
of available options usingClientOptions.allOptions()
orClientFactoryOptions.allOptions()
: #2516 #2523ClientOptions myOptions = ...; Map<ClientOption<?>, Object> map = new IdentityHashMap<>(); for (ClientOption o : ClientOptions.allOptions()) { map.put(myOptions.get(o)); }
ClientOptions.valueOf()
andClientFactoryOptions.valueOf()
have been split into two methods:define()
andof()
#2523.- Use
of()
if you're getting an existing option. - Use
define()
if you're defining a new option.
- Use
- You might need to adjust your monitoring system if you were watching
armeria.server.pendingResponses
, which has been renamed toarmeria.server.pending.responses
in this release. #2506
⛓ Dependencies
- Dropwizard 1.3.18 → 1.3.19
- Dropwizard Metrics 4.1.2 → 4.1.3
- java-jwt 3.9.0 → 3.10.0
- RxJava 2.2.17 → 2.2.18
- Shaded dependencies
- Reflections 0.9.12 → 0.9.11 (Downgrade)