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

[pulsar-broker] check replicator periodically to avoid issue due to zk missing watch #6674

Merged
merged 2 commits into from
Apr 8, 2020

Conversation

rdhabalia
Copy link
Contributor

Motivation

We have a regular issue when user changes replication-cluster list, many times broker misses the zk watch and broker fails to update replicator which causes either data loss or message backlog based on zk-watch missing at source or destination replication broker.

Modification

  • Broker expires replication policies at every X seconds
  • Starts a background task which checks polices (fetches new policies if it's already expired) and starts/stops replicator if needed.

Result

Broker can start/stop replicators based on updated policies even if broker misses zk watch.

@sijie
Copy link
Member

sijie commented Apr 7, 2020

/pulsarbot run-failure-checks

1 similar comment
@jiazhai
Copy link
Member

jiazhai commented Apr 7, 2020

/pulsarbot run-failure-checks

@sijie sijie merged commit 0f1673b into apache:master Apr 8, 2020
addisonj pushed a commit to instructure/pulsar that referenced this pull request May 7, 2020
…k missing watch (apache#6674)

### Motivation
We have a regular issue when user changes replication-cluster list, many times broker misses the zk watch and broker fails to update replicator which causes either data loss or message backlog based on zk-watch missing at source or destination replication broker.

### Modification
- Broker expires replication policies at every X seconds 
- Starts a background task which checks polices (fetches new policies if it's already expired) and starts/stops replicator if needed.

### Result
Broker can start/stop replicators based on updated policies even if broker misses zk watch.
addisonj pushed a commit to instructure/pulsar that referenced this pull request Jun 12, 2020
…k missing watch (apache#6674)

### Motivation
We have a regular issue when user changes replication-cluster list, many times broker misses the zk watch and broker fails to update replicator which causes either data loss or message backlog based on zk-watch missing at source or destination replication broker.

### Modification
- Broker expires replication policies at every X seconds 
- Starts a background task which checks polices (fetches new policies if it's already expired) and starts/stops replicator if needed.

### Result
Broker can start/stop replicators based on updated policies even if broker misses zk watch.
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…k missing watch (apache#6674)

### Motivation
We have a regular issue when user changes replication-cluster list, many times broker misses the zk watch and broker fails to update replicator which causes either data loss or message backlog based on zk-watch missing at source or destination replication broker.

### Modification
- Broker expires replication policies at every X seconds 
- Starts a background task which checks polices (fetches new policies if it's already expired) and starts/stops replicator if needed.

### Result
Broker can start/stop replicators based on updated policies even if broker misses zk watch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants