Skip to content

router write changes. No writing to all replicas#129

Merged
sriram-rangarajan merged 1 commit into
router_read_changesfrom
router_write_changes
Jul 13, 2022
Merged

router write changes. No writing to all replicas#129
sriram-rangarajan merged 1 commit into
router_read_changesfrom
router_write_changes

Conversation

@sriram-rangarajan

Copy link
Copy Markdown
Contributor

router write changes. No writing to all replicas

@pkarumanchi9 pkarumanchi9 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's release a candidate build with these changes.

clients = _pool.getEVCacheClientForWrite();
} else {
EVCacheClient client = _pool.getEVCacheClientForRead();
if (client == null) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you please add a comment on why client can be null?


private EVCacheClient[] getClientsForWrite() {
EVCacheClient[] clients;
if (clientWriteToAllReplicas.get()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If router instance is down or the tcp connection is severed, we need to handle the retries. For now, lets push these changes and release a candidate build.

@sriram-rangarajan sriram-rangarajan merged commit e117ebe into router_read_changes Jul 13, 2022
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.

6 participants