Issue Details (XML | Word | Printable)

Key: JRA-6906
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Dylan Etkin [Atlassian]
Reporter: Scott Farquhar [Atlassian]
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Create 'ping' table for better datasource integration

Created: 06/Jun/05 03:23 AM   Updated: 03/Jan/07 07:51 PM
Component/s: Backend / Domain Model
Affects Version/s: None
Fix Version/s: 3.4

Time Tracking:
Original Estimate: 2 days
Original Estimate - 2 days
Remaining Estimate: 2 days
Remaining Estimate - 2 days
Time Spent: Not Specified
Remaining Estimate - 2 days

Participants: Dylan Etkin [Atlassian], Nick Menere [Atlassian], Nick Minutello and Scott Farquhar [Atlassian]
Since last comment: 3 years, 6 weeks ago
Resolution Date: 23/Oct/05 11:42 PM
Labels:


 Description  « Hide
Currently many application servers and database pools support having a 'ping' table that you can contact to see if the database can be connected to.

We should investigate how this works on as many application servers / databases as possible, and ship with an extra table in entitymodel.xml.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Nick Minutello added a comment - 13/Jul/05 11:32 AM
We just user userbase as the "ping" table... (we do a select count from userbase)
With most drivers/databases, you can also do "select 1" - which is near-zero-cost, but does exercise the connection.

Nick Menere [Atlassian] added a comment - 13/Jul/05 06:21 PM
I started a Confluence page on this kind of thing for validating connections in Commons DBCP at:
http://confluence.atlassian.com/display/JIRA/Surviving+Connection+Closures

Nick Minutello added a comment - 13/Jul/05 06:34 PM
Cool

Dylan Etkin [Atlassian] added a comment - 23/Oct/05 11:42 PM
I have added some comments in the generated server.xml of the standalone to point to the doc for this issue. We can not have a cool implementation where we create a ping table and use that, I tried it and the problem is that the table has to exist so that the validation can succeed but we need a connection so that we can create the ping table. We would have to get a raw connection and generate 'create table' sql that will work on all supported db's and make sure that the table exists before we let JIRA run at all.