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

PathPatternParser#parse method failed with java.lang.IndexOutOfBoundsException [SPR-15246] #19811

Closed
spring-projects-issues opened this issue Feb 10, 2017 · 1 comment
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 10, 2017

Aliaksei Zhynhiarouski opened SPR-15246 and commented

It looks like new PathPatternParser, that introduced for path matching in recent updates works in not thread safe manner. If there are a lot of clients try to achieve URL, they all will fail due java.lang.IndexOutOfBoundsException caused by PathPatternParser:127

Steps to reproduce:

  1. Checkout project
    https://github.com/aliaksei-lithium/microservices-framework-benchmark/tree/feature/reactor-improve/spring-boot-reactor
    (feature/reactor-improve branch and spring-boot-reactor folder)
  2. Start server and run wrk -t4 -c128 -d2s http://localhost:8080 to simulate the highload to the endpoint
  3. Observe the error (java.lang.IndexOutOfBoundsException) in logs.
  4. Other requests will fail also.

Connected with #19112


Issue Links:

Referenced from: commits babd551, 2ac08af

@spring-projects-issues
Copy link
Collaborator Author

Brian Clozel commented

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants