-
Notifications
You must be signed in to change notification settings - Fork 735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed Requirement of transactions on ORL, added SCN code. #32
base: master
Are you sure you want to change the base?
Conversation
…the NPE when an unwatched table comes through
…en one at startup
Thanks Jason. Please give us around 2 days to review this code, and see how Offhand - one of the changes look good, which is the ability to query the The prototype adapter has a bug where in if two mysql statements are Cheers On Mon, Apr 28, 2014 at 11:37 AM, Jason Powers notifications@github.comwrote:
|
No problem, Yeah, it sounds like the un-watched table code fixes the same thing that If it helps I can move them each over to separate branches and send pull On Tue, Apr 29, 2014 at 8:44 AM, Phanindra Ganti
|
Jason,
binlog as a separate pull request ? Thanks On Tue, Apr 29, 2014 at 8:03 AM, Jason Powers notifications@github.comwrote:
|
No prob. On Tue, May 6, 2014 at 7:39 AM, Phanindra Ganti notifications@github.comwrote:
|
There are 2 specific commits here that others might find useful. If it would help for me to move them over to another branch for the pull, let me know.
This removes the need to use transactions in mysql. Transactions still work, but individual updates will as well. This change also removes an NPE that happens when an un-watched table happens to have an update.
sovrn@a997948
This change has made the relay a lot easier to use:
sovrn@061475e
We only really need to watch for changes currently, so there's not much of a need to use the file based storage. I found that in-memory didn't work because it would always default the listener to bin file 1 at offset 4. For our longer running servers those files were purged quite some time ago. This change should work for both file and in-memory. If by the end of the method the scn is still 0 or -1, it connects to the DB to look for the current file and position, then turns that into an SCN. I used the raw JDBC code here because I didn't see any connection managers (ie c3p0 or dbcp) in the dependencies. Seemed silly to add one just for this.
This also removes the need to calculate the current SCN by hand when running the example code.