Getting a deadlock message when I update post #502843
Looks like this:
ActiveRecord::StatementInvalid in PostController#update
PGError: ERROR: canceling statement due to statement timeout
CONTEXT: SQL statement "UPDATE tags SET post_count = post_count - 1 WHERE tags.id = OLD.tag_id"
PL/pgSQL function trg_posts_tags__delete() line 3 at SQL statement
: DELETE FROM posts_tags WHERE post_id = 502843
RAILS_ROOT: /home/e621/e621-production/release-2014-06-08
Application Trace | Framework Trace | Full Trace
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract_adapter.rb:227:in log'
/opt/rbenv/versions/ree-1.8.7-2012.02/lib/ruby/gems/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/postgresql_adapter.rb:520:in execute'
/home/e621/e621-production/release-2014-06-08/lib/core_extensions.rb:8:in __send__'
/home/e621/e621-production/release-2014-06-08/lib/core_extensions.rb:8:in execute_sql'
/home/e621/e621-production/release-2014-06-08/app/models/post/tag_methods.rb:171:in commit_tags'
/home/e621/e621-production/release-2014-06-08/app/models/post/tag_methods.rb:81:in commit_tags'
/home/e621/e621-production/release-2014-06-08/app/controllers/post_controller.rb:283:in update'
Request
Parameters:
{"post"=>{"hide_anon"=>false,
"old_tags"=>"anal anal_penetration canine cynder_(sunitai) fox herm intersex knot male mammal nude penetration penis sheath sunitai video_games zander",
"rating"=>"Explicit",
"description"=>"",
"is_rating_locked"=>"0",
"source"=>"http://www.furaffinity.net/user/sunitai/\r\nhttp://www.furaffinity.net/view/13874240/\r\nhttp://d.facdn.net/art/sunitai/1404259360.sunitai_kupage6.png",
"tags"=>"anal anal_penetration canine cynder_(sunitai) fox intersex knot male mammal nude penetration penis sheath sunitai video_games zander",
"hide_google"=>false,
"parent_id"=>"",
"is_note_locked"=>"0"},
"id"=>"502843",
"reason"=>""}
Show session dump
Response
Headers:
{"Set-Cookie"=>"blacklisted_tags=adam_wan+animated&gore&washa&jasonafex&blood; path=/\nblacklist_avatars=true; path=/\nblacklist_users=false; path=/",
"Content-Type"=>"",
"Cache-Control"=>"no-cache"}[/section]
Updated by spight