Skip to content

Any semi-sync replication support? #43

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

Open
wenerme opened this issue Apr 28, 2015 · 3 comments
Open

Any semi-sync replication support? #43

wenerme opened this issue Apr 28, 2015 · 3 comments

Comments

@wenerme
Copy link

wenerme commented Apr 28, 2015

Like this

BinaryLogClient client = new BinaryLogClient("hostname", 3306, "username", "password");
client.registerEventListener(new EventListener() {

    @Override
    public void onEvent(Event event,Acker ack) {
        ...
        ack.ack();// Ack current event
    }
});
client.connect();

is this possible ?

@shyiko
Copy link
Owner

shyiko commented Apr 28, 2015

Could you please elaborate on why you would what something like this? What is it you are trying to solve? Having read #42 I'll assume you have blocking queue where you store events (received from BinaryLogClient) for further processing and you want to acknowledge each one of them once processing is actually done. If that is the case - a pair of <binlogFilename, binlogPosition> (which can be retrieved at any moment from BinaryLogClient instance) along with each event could probably be used to simulate something similar to your example. But more information would be great.

@wenerme
Copy link
Author

wenerme commented Apr 28, 2015

Sorry, actually I want to ask the semi-sync replication support.I want to keep up the master status,my slow down the master, but more consistency.

@wenerme wenerme changed the title Any async replication support? Any semi-sync replication support? Apr 28, 2015
@shyiko
Copy link
Owner

shyiko commented Apr 28, 2015

Oh, I see. Unfortunately it's not supported, BUT it should be fairly easy to implement (process is well documented here). I'm busy on other stuff right now so it might be a while before I get my hands on it. PR would be much appreciated 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants