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

Journal with command store #102

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

ifesdjeen
Copy link
Contributor

Accord counterpart of apache/cassandra#3409

@@ -666,6 +672,11 @@ public final boolean isTruncated()
return status().hasBeen(Status.Truncated);
}

public static boolean isTruncated(Status status)
{
return status.hasBeen(Status.Truncated);
Copy link
Contributor

Choose a reason for hiding this comment

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

Truncated         (Cleanup, Maybe, DefinitionErased,  ExecuteAtErased,  DepsErased,   Outcome.Erased),
Invalidated       (Persist, Maybe, NoOp,              NoExecuteAt,      NoDeps,       Outcome.Invalidated),

wouldn't that include Invalidated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So I have simply copied the code from above; my intention was to make non-static version use the static one as I did with isStable. You are right isTruncated is included here.

@@ -1240,7 +1251,7 @@ public boolean equals(Object o)
if (!super.equals(o)) return false;
Executed executed = (Executed) o;
return Objects.equals(writes, executed.writes)
&& Objects.equals(result, executed.result);
&& Objects.equals(result, executed.result); // TODO: find a different way to check/assert?
Copy link
Contributor

Choose a reason for hiding this comment

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

why this todo? what is the issue with the check?

Copy link
Contributor

Choose a reason for hiding this comment

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

TODO should be //TODO (classification 1, classification 2, etc.): msg

This is so we can find them easier and find the why and when to fix issues.

Copy link
Contributor

Choose a reason for hiding this comment

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

the main classifications are priority ones, and should go first:

desired
expected
required

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reverted this; this was a tmp TODO.

@@ -558,6 +558,9 @@ protected void start(BiConsumer<? super R, Throwable> callback)

public void reply(Id replyingToNode, ReplyContext replyContext, Reply send, Throwable failure)
{
if (replyingToNode == Id.NONE)
Copy link
Contributor

Choose a reason for hiding this comment

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

when is this case in the protocol?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This used to be the case during replay. But you are right, maybe with my latest changes this will not be the case anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed now.

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.

3 participants