Skip to content

In avoid to call zk frequently, using watcher to watch the change#3554

Closed
gaozhangmin wants to merge 1 commit intoapache:masterfrom
gaozhangmin:watcher-isLedgerReplicationEnabled
Closed

In avoid to call zk frequently, using watcher to watch the change#3554
gaozhangmin wants to merge 1 commit intoapache:masterfrom
gaozhangmin:watcher-isLedgerReplicationEnabled

Conversation

@gaozhangmin
Copy link
Contributor

Fixes #3358

@gaozhangmin gaozhangmin force-pushed the watcher-isLedgerReplicationEnabled branch 2 times, most recently from e8a135d to 6bd431e Compare October 25, 2022 04:37
@gaozhangmin
Copy link
Contributor Author

@dlg99 PTAL Thx

@gaozhangmin gaozhangmin changed the title Add watcher to watch isLedgerReplicationEnabled znode In avoid to call zk frequently, using watcher to watch the change of Oct 25, 2022
@gaozhangmin gaozhangmin changed the title In avoid to call zk frequently, using watcher to watch the change of In avoid to call zk frequently, using watcher to watch the change Oct 25, 2022
@gaozhangmin gaozhangmin force-pushed the watcher-isLedgerReplicationEnabled branch from d1dfd27 to deec13a Compare October 25, 2022 08:54
@gaozhangmin gaozhangmin force-pushed the watcher-isLedgerReplicationEnabled branch 2 times, most recently from 763f512 to 02f5160 Compare October 27, 2022 04:56
@gaozhangmin gaozhangmin requested review from dlg99 and eolivelli and removed request for dlg99 and eolivelli October 27, 2022 06:05
@gaozhangmin
Copy link
Contributor Author

rerun failure checks

@gaozhangmin gaozhangmin requested review from dlg99 and eolivelli and removed request for dlg99 and eolivelli October 27, 2022 08:17
@gaozhangmin
Copy link
Contributor Author

@eolivelli @dlg99 PTAL

@gaozhangmin gaozhangmin requested review from dlg99 and removed request for eolivelli November 2, 2022 05:11
@gaozhangmin gaozhangmin requested review from dlg99 and removed request for eolivelli November 2, 2022 05:11
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the repeated calls to ZK are not be a problem in Pulsar, since 2.10, because the calls to ZK are already internally cached.

@gaozhangmin gaozhangmin force-pushed the watcher-isLedgerReplicationEnabled branch from e7587d4 to 380d175 Compare November 4, 2022 05:46
@gaozhangmin
Copy link
Contributor Author

rerun failure checks

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

Successfully merging this pull request may close these issues.

ZkLedgerUnderreplicationManager: cache responses / reduce number of zk calls by isLedgerReplicationEnabled()

4 participants