Skip to content

graemerocher/micronaut-http

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micronaut-http-client

An attempt to reproduce potential issue with Micronaut declarative http client.

Issue

The issue seems to be with Micronaut declarative http clients where they start erroring out with io.micronaut.http.client.exceptions.ReadTimeoutException: Read Timeout when several concurrent requests are in play (more than 20 in test here) using the clients. This seem to only happen (wierdly) when a declarative client is used in conjunction with micronaut security, HttpClientFilter and Controller.

The application flow in the repo seen here is similar to what we have for our application and the strange part is that the error is reproducible only when auth client (validation and token issue) and service client are used. If we remove any one of these calls the test starts to pass. Initially we thought that the issue is exactly as reported here: micronaut-projects/micronaut-core#2905 but trying out the workaround suggested in this post does not fix the issue for us.

How to reproduce

./gradlew test can be run from commamnd line in debug mode to see error io.micronaut.http.client.exceptions.ReadTimeoutException: Read Timeout coming from Micronaut Http client. However it can be best viewed by importing the project within intellij , Eclipse or any other editor of choice and running the test StatusIntegrationSpec directly and reviewing console logs.

On my machine the test fails when CONCURRENT_REQUESTS_COUNT field defined within StatusIntegrationSpec has a value of 20 (sometimes fails with 10 or more). It works mostly when it is less than 10.

About

Micronaut Http client test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 62.4%
  • Groovy 37.6%