In my application this exception is generated at rate ~2000 exceptions per one minute (it is generated inside spring-data-jpa, my application intensively interacts with database).
This change may help to avoid slow operation of creation exception and its stack trace.
Comment From: pivotal-issuemaster
@flintmail Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
Comment From: pivotal-issuemaster
@flintmail Thank you for signing the Contributor License Agreement!
Comment From: luyaor
Dear Andrei N(@flintmail),
We are working on identifying redundant development and duplicated pull requests. We have found there are pull requests: https://github.com/spring-projects/spring-framework/pull/1630 https://github.com/spring-projects/spring-framework/pull/1629 https://github.com/spring-projects/spring-framework/pull/1628 which might be potentially duplicated to this one. We would really appreciate if you could help us to validate and give us feedback.
Thank you very much for your time!
Sincerely, Luyao
Comment From: anavrotski
Hi. I think #1628 and #1629 looks similar to solution, propossd by me. But #1630 looks more complicated, so it can give poor performance.
Comment From: bclozel
Closing because of https://github.com/spring-projects/spring-framework/pull/1628#issuecomment-354589149
Thanks for your contribution