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

router write changes. No writing to all replicas #129

Merged
merged 1 commit into from
Jul 13, 2022

Conversation

sriram-rangarajan
Copy link
Contributor

router write changes. No writing to all replicas

Copy link
Contributor

@pkarumanchi9 pkarumanchi9 left a comment

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
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?

@@ -2210,12 +2212,27 @@ public int getDefaultTTL() {
return _timeToLive;
}

private EVCacheClient[] getClientsForWrite() {
EVCacheClient[] clients;
if (clientWriteToAllReplicas.get()) {
Copy link
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