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

Upgrade to Reactor 3.4 and Reactor Netty 1.0 #2359

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

shakuzen
Copy link
Member

This also switches to using the Reactor BOM for dependency management. Some internal changes to the StatsD registry usage of Reactor were necessary with the move from Processors to Sinks. The many, multicast, directBestEffort Sink is the closest match to DirectProcessor that we were using before.
With 1.0, reactor-netty now offers a core dependency that doesn't include HTTP, which we can use to save some bytes in the statsd JAR.

Resolves gh-2319

@@ -66,7 +66,7 @@ void bufferMultipleStrings() {
"fourteen bytes"
);

Flux<String> buffered = BufferingFlux.create(source, "\n", 27, Long.MAX_VALUE);
Flux<String> buffered = BufferingFlux.create(source, "\n", 27, 1000);
Copy link
Member Author

@shakuzen shakuzen Nov 24, 2020

Choose a reason for hiding this comment

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

Passing Long.MAX_VALUE here causes an overflow (since Reactor 3.4) because Long.MAX_VALUE milliseconds eventually tries to get converted to nanoseconds.

This also switches to using the Reactor BOM for dependency management. Some internal changes to the StatsD registry usage of Reactor were necessary with the move from Processors to Sinks. The many, multicast, directBestEffort Sink is the closest match to DirectProcessor that we were using before.
With 1.0, reactor-netty now offers a core dependency that doesn't include HTTP, which we can use to save some bytes in the statsd JAR.

Resolves micrometer-metricsgh-2319
@shakuzen shakuzen merged commit 78b061d into micrometer-metrics:1.5.x Nov 25, 2020
shakuzen added a commit that referenced this pull request Dec 10, 2020
@shakuzen shakuzen added the registry: statsd A StatsD Registry related issue label Jan 14, 2021
@shakuzen shakuzen deleted the actor-re branch December 2, 2021 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
registry: statsd A StatsD Registry related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants