Skip to content

Commit

Permalink
postgres and mysql specific deadlock detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Gauthier committed Apr 28, 2010
1 parent 42a3fa8 commit 2f874f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hydra.gemspec
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Nick Gauthier"]
s.date = %q{2010-04-22}
s.date = %q{2010-04-28}
s.description = %q{Spread your tests over multiple machines to test your code faster.}
s.email = %q{nick@smartlogicsolutions.com}
s.extra_rdoc_files = [
Expand Down
4 changes: 3 additions & 1 deletion lib/hydra/master.rb
Expand Up @@ -83,7 +83,9 @@ def send_file(worker)

# Process the results coming back from the worker.
def process_results(worker, message)
if message.output =~ /ActiveRecord::StatementInvalid(.*)[Dd]eadlock/
if message.output =~ /ActiveRecord::StatementInvalid(.*)[Dd]eadlock/ or
message.output =~ /PGError: ERROR(.*)[Dd]eadlock/ or
message.output =~ /Mysql::Error: SAVEPOINT(.*)does not exist: ROLLBACK/
trace "Deadlock detected running [#{message.file}]. Will retry at the end"
@files.push(message.file)
else
Expand Down

0 comments on commit 2f874f1

Please sign in to comment.