Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17193

WebFlux JSON request body garbled under heavy load

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 5.0.8
    • Fix Version/s: 5.0.9, 5.1 RC3
    • Component/s: Reactive, Web
    • Labels:
      None

      Description

      Running a load test against a webflux application, I experienced garbled requests under (moderately) heavy load: once in a while (i.e. 1 in 10 to 50.000 requests), the deserialization of the request body into the @RequestBody field yields wrong results.

      In these bad results, field values are set to another field's value - but truncated to the lenght of the original field.

       

      Example:

      Original Request:

      {"subject"`:
      
      {"username":"USERNAME"}
      
      ,"action":"HTTP:ACTION","resource":"https://resource.url"}
       

      Garbeled Request (example):

      {"subject":
      
      {"username":"USERNAME"}
      
      ,"action":"https://res","resource":"https://resource.url"}
       

       

      The error only appears with authentication (basic auth) enabled.

       

      I've created a test project to reproduce and better describe the error:

      https://github.com/mkutter/netty-webflux-load

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              MartinKutter Martin Kutter
              Last updater:
              Spring Issuemaster
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 40 weeks, 6 days ago