Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1462

Refreshing connections in DataPool after DB restart

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1M1
    • Undefined future
    • None
    • None
    • MS SQL

    Description

      Problem can be simulated after restart of SQL Server.

      So connection in my pool become "dead". Only thing that helps: restart my appllication.

      I wold like to have some mechanism to validate pooled connections and refresh them.

      Possible solutions:
      1) validate before give connection from pool
      2) asynchronous thread for validation.
      3) Generate event for pool on such exceptions (to validate and refresh connections)

      1- is more reliable but not sure how it will influence on performance...
      2 - at least something... but can look like some not understandable magic...
      3 - need some code investigation...

      Attachments

        Activity

          People

            apparition Evgeny Ryabitskiy
            apparition Evgeny Ryabitskiy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: