Open justingaylor opened 8 years ago
I looked a bit into the code and found this is where the error is raised: https://github.com/rightscale/attributor/blob/fbaae0a4fccd8ab04761ac1784eeae55eb7c01dc/lib/attributor/types/hash.rb#L83
And it appears @errors
is only set here:
https://github.com/rightscale/attributor/blob/fbaae0a4fccd8ab04761ac1784eeae55eb7c01dc/lib/attributor/types/hash.rb#L116
When running under rainbows in multi-threaded mode (50 workers, 2 threads/worker) to investigate another issue, I've encountered the following intermittent errors.
My test sends 100 concurrent requests to the service, all the same exact request format. Of the 100 requests, 2 or 3 return "400 Bad Request" with the above validation error, while the rest of the requests return 200 OK.
Here's the response body for the failures:
It feels like this could be a problem with thread safety in the params hash processing in praxis/attributor, so I thought I would report here.
Please let me know if I should report this under praxis or here and how I can help. Cheers.