Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions