aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-07-22 01:41:41 +0530
committerVipul A M <vipulnsward@gmail.com>2013-07-22 14:44:33 +0530
commit0b6c1f082f2112649611c993d39d4471ee1bb530 (patch)
tree78db8b031431a471f82c272da06c4877c7ba4061 /activerecord/CHANGELOG.md
parente5275f9b5924f36f2bdd4dd9ac0a4f420384748f (diff)
downloadrails-0b6c1f082f2112649611c993d39d4471ee1bb530.tar.gz
rails-0b6c1f082f2112649611c993d39d4471ee1bb530.tar.bz2
rails-0b6c1f082f2112649611c993d39d4471ee1bb530.zip
rescue from all exceptions in `ConnectionManagement#call`
Fixes #11497 As `ActiveRecord::ConnectionAdapters::ConnectionManagement` middleware does not rescue from Exception (but only from StandardError), the Connection Pool quickly runs out of connections when multiple erroneous Requests come in right after each other. Recueing from all exceptions and not just StandardError, fixes this behaviour.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 8e262b5fd7..7e9ec7ad94 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,17 @@
+* rescue from all exceptions in `ConnectionManagement#call`
+
+ Fixes #11497
+
+ As `ActiveRecord::ConnectionAdapters::ConnectionManagement` middleware does
+ not rescue from Exception (but only from StandardError), the Connection
+ Pool quickly runs out of connections when multiple erroneous Requests come
+ in right after each other.
+
+ Rescuing from all exceptions and not just StandardError, fixes this
+ behaviour.
+
+ *Vipul A M*
+
* `change_column` for PostgreSQL adapter respects the `:array` option.
*Yves Senn*