continuent.org JIRA  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: TREP-272
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Robert Hodges
Reporter: Gilles Rayrat
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Tungsten Replicator

Expose underlying database URL and Driver as new JMX calls

Created: 20/Apr/09 04:37 AM   Updated: 03/Nov/09 12:01 AM
Component/s: None
Affects Version/s: None
Fix Version/s: Tungsten Replicator 2.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Dependants
 
This issue blocks:
TREP-278 Implement pluggable backup and restor... Critical Resolved


 Description   
The jdbc URL of database the replicator is talking to (applying or extracting data) should be made available to 3rd party applications like the Tungsten SQL Router.
Example:
Master on node1 => jmx.getJdbcUrl() == "jdbc:mysql://node1/dbname"
Slave on node2 => jmx..getJdbcUrl() == "jdbc:mysql://node2/dbname"

Also applies to the driver (eg. "com.mysql.jdbc.Driver")

 All   Comments   Work Log   Change History      Sort Order:
Comment by Robert Hodges [29/Apr/09 02:31 AM]
Hi Gilles, two follow-on questions:

1.) We don't require the login or password, correct? These would need to be supplied by the client application that calls SQL Router.
2.) How do we pick the database when there are multiple choices? Should we just provide the tungsten schema, e.g., jdbc:mysql://myhost/tungsten?

Comment by Gilles Rayrat [29/Apr/09 01:45 PM]
Hi Robert,

To give a little background, this URL will be directly used by the SQL router to create data sources in order to offer them to the client application
1) login/pass are not required, that's ok
2) I would vote for "${DBNAME}", that would greatly simplify the router's job.
This ${DBNAME}" placeholder is the one used in the current implementation of dbname substitution in the router, so having it in the URL would allow to not touch the router code

Comment by Linas Virbalas [30/Apr/09 03:45 AM]
This functionality would also be useful for
com.continuent.tungsten.replicator.ReplicatorManager.consistencyCheck(String, String, String, int, int)
method, which generates the URL by itself currently.