Skip to content

Replication, binlogreader: "connection was bad" #43

Open
@shlomi-noach

Description

@shlomi-noach

While using binlogreader, as in:

... = binlogReader.binlogSyncer.RegisterSlave(connectionConfig.Key.Hostname, uint16(connectionConfig.Key.Port), connectionConfig.User, connectionConfig.Password)
...
<time passes>
...
ev, err := this.binlogStreamer.GetEvent()

I get a non nil err, which says "connection was bad"

This happens when enough time passes for the connection to invalidate. I'm trying to figure out if there is support for the equivalent MASTER_CONNECT_RETRY, MASTER_RETRY_COUNT, such that I would be able to configure the connection to retry as much as I want, with as small interval that I want.

I haven't figured this out yet -- is there such support?

Kind regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions