Skip to content
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

EOFException on every master #14

Open
GoogleCodeExporter opened this issue Apr 3, 2016 · 1 comment
Open

EOFException on every master #14

GoogleCodeExporter opened this issue Apr 3, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Every master server I attempt to connect to with the sample script, I get the 
following error:

java.io.EOFException
        at com.google.code.or.io.impl.XInputStreamImpl.doFill(XInputStreamImpl.java:237)
        at com.google.code.or.io.impl.XInputStreamImpl.read(XInputStreamImpl.java:213)
        at com.google.code.or.io.impl.XInputStreamImpl.readNullTerminatedString(XInputStreamImpl.java:96)
        at com.google.code.or.io.util.XDeserializer.readNullTerminatedString(XDeserializer.java:102)
        at com.google.code.or.net.impl.packet.GreetingPacket.valueOf(GreetingPacket.java:133)
        at com.google.code.or.net.impl.TransportImpl.connect(TransportImpl.java:87)
        at com.google.code.or.OpenReplicator.start(OpenReplicator.java:91)
        at mem_search.Go.main(Go.java:37)


----

code:

                        final OpenReplicator or = new OpenReplicator();
or.setUser("slave1");
or.setPassword("slave1");
or.setHost("exampleip");
or.setPort(3306);
or.setServerId(6789);
or.setBinlogPosition(822716382);
or.setBinlogFileName("mysql-bin.000765");
or.setBinlogEventListener(new BinlogEventListener() {
    public void onEvents(BinlogEventV4 event) {
        // your code goes here
    }
});
or.start();

System.out.println("press 'q' to stop");
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
for(String line = br.readLine(); line != null; line = br.readLine()) {
    if(line.equals("q")) {
//        or.stop();
        break;
    }
}

Original issue reported on code.google.com by [email protected] on 4 Apr 2015 at 5:38

@GoogleCodeExporter
Copy link
Author

Using latest 1.0.7 version of open-replicator

Original comment by [email protected] on 4 Apr 2015 at 5:39

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

No branches or pull requests

1 participant