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

Replicalayout followup #262

Closed
wants to merge 11 commits into from

Conversation

ifesdjeen
Copy link
Contributor

No description provided.

ReplicaLayout.ForTokenWrite liveAndDown = ReplicaLayout.forTokenWriteLiveAndDown(keyspace, tk);
Replicas.temporaryAssertFull(liveAndDown.all()); // TODO in CASSANDRA-14549

EndpointsForToken.Builder liveReplicasBuilder = EndpointsForToken.builder(tk);
Replica selfReplica = liveAndDown.all().selfIfPresent();
if (selfReplica != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

What exactly is this corner case where we have a hint written to ourselves? I thought we don't hint ourselves.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looked at mutateAtomically and sendToHintedEndpoints, I guess I can see that we do have the batch log attempt to write to the coordinator. I guess that sort of makes sense in the batch log doesn't really make sense sort of way. It's possible the coordinator didn't hand the write off to itself.

@ifesdjeen ifesdjeen closed this Sep 12, 2018
blambov pushed a commit to blambov/cassandra that referenced this pull request Oct 11, 2021
jacek-lewandowski pushed a commit to jacek-lewandowski/cassandra that referenced this pull request Mar 7, 2022
…A-16663) (apache#262)

Ported from OSS commit d220d24.

(cherry picked from commit b762e3c)
blambov pushed a commit to blambov/cassandra that referenced this pull request Mar 21, 2022
…A-16663) (apache#262)

Ported from OSS commit d220d24.

(cherry picked from commit b762e3c)
blambov pushed a commit to blambov/cassandra that referenced this pull request Jun 13, 2022
…A-16663) (apache#262)

Ported from OSS commit d220d24.

(cherry picked from commit b762e3c)
(cherry picked from commit 34374c1)
blambov pushed a commit to blambov/cassandra that referenced this pull request Nov 24, 2022
…A-16663) (apache#262)

Ported from OSS commit d220d24.

(cherry picked from commit b762e3c)
(cherry picked from commit 34374c1)
(cherry picked from commit b9046be)
adelapena pushed a commit to adelapena/cassandra that referenced this pull request Sep 26, 2023
…A-16663) (apache#262)

Ported from OSS commit d220d24.

(cherry picked from commit b762e3c)
(cherry picked from commit 34374c1)
(cherry picked from commit b9046be)
(cherry picked from commit f4bba13)
(cherry picked from commit dbe5094)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants