Skip to content

Misleading Error Message #525

Description

@l33z3r

Hi, when an SQL query times out by taking longer than the timeout specified in database.yml, the error message is kind of misleading.

The error comes in as 'Adaptive Server Timed Out'

We thought it was a network issue at first, but finally nailed it down to a slow query.

Would it be helpful to beef up this error message to say that a query is taking too long, rather than the server timed out message.

Here is an example of a stack trace:

ActiveRecord::StatementInvalid: Adaptive Server connection timed out
…alizers/active_record_sqlserver_disable_transaction.rb:   57:in `block in save_with_disabled_transaction'
…alizers/active_record_sqlserver_disable_transaction.rb:   26:in `disable_transaction'
…alizers/active_record_sqlserver_disable_transaction.rb:   56:in `save_with_disabled_transaction'
…_radar/app/models/bet_radar/live_odds/parsers/score.rb:  117:in `save_set_score'
…_radar/app/models/bet_radar/live_odds/parsers/score.rb:   47:in `block in parse_score_from_match_node'
…_radar/app/models/bet_radar/live_odds/parsers/score.rb:   40:in `parse_score_from_match_node'
…ns/bet_radar/app/models/bet_radar/live_odds/message.rb:   94:in `process'
(eval):3:in `block in process_with_newrelic_transaction_trace'
(eval):2:in `process_with_newrelic_transaction_trace'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions