You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "aweisberg (via GitHub)" <gi...@apache.org> on 2024/06/06 16:54:46 UTC
[PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
aweisberg opened a new pull request, #96:
URL: https://github.com/apache/cassandra-accord/pull/96
Patch by Ariel Weisberg; Reviewed by Benedict Elliott Smoith for CASSANDRA-19687
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "aweisberg (via GitHub)" <gi...@apache.org>.
aweisberg commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635521252
##########
accord-core/src/main/java/accord/local/SerializerSupport.java:
##########
@@ -88,6 +87,7 @@ public class SerializerSupport
ImmutableSet.<MessageType>builder()
.addAll(PRE_ACCEPT_STABLE_TYPES)
.addAll(APPLY_TYPES)
+ .add(PROPAGATE_OTHER_MSG)
Review Comment:
Then what is the code in `SerializerSupport` supposed to be doing with `PROPAGATE_OTHER_MSG`? Because right now it's doesn't process it at all.
I can create a new type for truncated or invalidated, but then PROPAGATE_OTHER_MSG will be a no-op again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "aweisberg (via GitHub)" <gi...@apache.org>.
aweisberg commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635512270
##########
accord-core/src/main/java/accord/utils/CheckpointIntervalArray.java:
##########
@@ -213,9 +213,6 @@ else if ((ri & BIT29) != 0)
forEachScanOrCheckpoint.accept(p1, p2, p3, p4, i);
}
- if (start == end)
Review Comment:
How can I follow up on this? Is there a test that should be failing or something I should look at?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1633776106
##########
accord-core/src/test/java/accord/impl/list/ListStore.java:
##########
@@ -512,6 +513,8 @@ public static AsyncChain<SyncPoint<Ranges>> coordinate(Node node, long minEpoch,
Await coordinate = new Await(node, minEpoch, sp);
coordinate.start();
return coordinate.recover(t -> {
+ if (t.getClass() == SyncPointErased.class)
+ return AsyncChains.success(null);
Review Comment:
this code is consistent with the rest of the function, so its fine... but relooking at it `return AsyncChains.success(null)` feels wrong as the only caller doesn't handle that case! Its there for debug logging, so if we actually log we will hit a NPE I think...
nothing for you to change as you are consistent... but a bad access will lead to a NPE if we hit this or `Redundant`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1633769975
##########
accord-core/src/main/java/accord/primitives/RangeDeps.java:
##########
@@ -18,24 +18,55 @@
package accord.primitives;
-import accord.api.Key;
-import accord.api.RoutingKey;
-import accord.utils.*;
-import accord.utils.SortedArrays.SortedArrayList;
-import net.nicoulaj.compilecommand.annotations.DontInline;
-import net.nicoulaj.compilecommand.annotations.Inline;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.BitSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Stream;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+import accord.api.Key;
+import accord.api.RoutingKey;
+import accord.utils.ArrayBuffers;
+import accord.utils.IndexedBiConsumer;
+import accord.utils.IndexedConsumer;
+import accord.utils.IndexedQuadConsumer;
+import accord.utils.IndexedRangeQuadConsumer;
+import accord.utils.Invariants;
+import accord.utils.RelationMultiMap;
+import accord.utils.SearchableRangeList;
+import accord.utils.SortedArrays;
+import accord.utils.SortedArrays.SortedArrayList;
+import accord.utils.SymmetricComparator;
+import accord.utils.TriFunction;
+import net.nicoulaj.compilecommand.annotations.DontInline;
+import net.nicoulaj.compilecommand.annotations.Inline;
-import static accord.utils.ArrayBuffers.*;
Review Comment:
silly `.*`!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "aweisberg (via GitHub)" <gi...@apache.org>.
aweisberg merged PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1633770636
##########
accord-core/src/main/java/accord/utils/CheckpointIntervalArray.java:
##########
@@ -213,9 +213,6 @@ else if ((ri & BIT29) != 0)
forEachScanOrCheckpoint.accept(p1, p2, p3, p4, i);
}
- if (start == end)
Review Comment:
we spoke in slack, just putting it here. The disk based version needed this for a reason I can't remember, so that would need to be updated to handle this case.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "belliottsmith (via GitHub)" <gi...@apache.org>.
belliottsmith commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1634738104
##########
accord-core/src/main/java/accord/local/SerializerSupport.java:
##########
@@ -88,6 +87,7 @@ public class SerializerSupport
ImmutableSet.<MessageType>builder()
.addAll(PRE_ACCEPT_STABLE_TYPES)
.addAll(APPLY_TYPES)
+ .add(PROPAGATE_OTHER_MSG)
Review Comment:
We should only maybe propagate `Truncated` or `Invalidated` out of those
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635519096
##########
accord-core/src/main/java/accord/utils/CheckpointIntervalArray.java:
##########
@@ -213,9 +213,6 @@ else if ((ri & BIT29) != 0)
forEachScanOrCheckpoint.accept(p1, p2, p3, p4, i);
}
- if (start == end)
Review Comment:
I double checked and those tests touch this function.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1633771647
##########
accord-core/src/test/java/accord/impl/list/ListStore.java:
##########
@@ -512,6 +513,8 @@ public static AsyncChain<SyncPoint<Ranges>> coordinate(Node node, long minEpoch,
Await coordinate = new Await(node, minEpoch, sp);
coordinate.start();
return coordinate.recover(t -> {
+ if (t.getClass() == SyncPointErased.class)
Review Comment:
TIL: `SyncPointErased`.... fancy...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "aweisberg (via GitHub)" <gi...@apache.org>.
aweisberg commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635511707
##########
accord-core/src/main/java/accord/primitives/RangeDeps.java:
##########
@@ -18,24 +18,55 @@
package accord.primitives;
-import accord.api.Key;
-import accord.api.RoutingKey;
-import accord.utils.*;
-import accord.utils.SortedArrays.SortedArrayList;
-import net.nicoulaj.compilecommand.annotations.DontInline;
-import net.nicoulaj.compilecommand.annotations.Inline;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.BitSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Stream;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+import accord.api.Key;
+import accord.api.RoutingKey;
+import accord.utils.ArrayBuffers;
+import accord.utils.IndexedBiConsumer;
+import accord.utils.IndexedConsumer;
+import accord.utils.IndexedQuadConsumer;
+import accord.utils.IndexedRangeQuadConsumer;
+import accord.utils.Invariants;
+import accord.utils.RelationMultiMap;
+import accord.utils.SearchableRangeList;
+import accord.utils.SortedArrays;
+import accord.utils.SortedArrays.SortedArrayList;
+import accord.utils.SymmetricComparator;
+import accord.utils.TriFunction;
+import net.nicoulaj.compilecommand.annotations.DontInline;
+import net.nicoulaj.compilecommand.annotations.Inline;
-import static accord.utils.ArrayBuffers.*;
Review Comment:
Are you asking to keep the `.*`? Cassandra code style is to use explicit imports if it's < 100!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635525148
##########
accord-core/src/main/java/accord/utils/CheckpointIntervalArray.java:
##########
@@ -213,9 +213,6 @@ else if ((ri & BIT29) != 0)
forEachScanOrCheckpoint.accept(p1, p2, p3, p4, i);
}
- if (start == end)
Review Comment:
```
java.lang.IndexOutOfBoundsException: Start is from (0, 10]; attempted to access 10
at org.apache.cassandra.index.accord.CheckpointIntervalArrayIndex$SortedListReader.fileOffsetStart(CheckpointIntervalArrayIndex.java:336)
at org.apache.cassandra.index.accord.CheckpointIntervalArrayIndex$SegmentSearcher.lambda$intersects$1(CheckpointIntervalArrayIndex.java:618)
at accord.utils.CheckpointIntervalArray.forEach(CheckpointIntervalArray.java:219)
at accord.utils.CheckpointIntervalArray.forEach(CheckpointIntervalArray.java:127)
at org.apache.cassandra.index.accord.CheckpointIntervalArrayIndex$SegmentSearcher.intersects(CheckpointIntervalArrayIndex.java:612)
at org.apache.cassandra.index.accord.CheckpointIntervalArrayIndexTest$1.intersects(CheckpointIntervalArrayIndexTest.java:410)
at org.apache.cassandra.index.accord.CheckpointIntervalArrayIndexTest.fuzz(CheckpointIntervalArrayIndexTest.java:146)
at org.apache.cassandra.index.accord.CheckpointIntervalArrayIndexTest.lambda$fuzzSmall$1(CheckpointIntervalArrayIndexTest.java:121)
at accord.utils.Property$SingleBuilder.checkInternal(Property.java:245)
at accord.utils.Property$SingleBuilder.lambda$check$0(Property.java:230)
at accord.utils.async.TimeoutUtils.lambda$runBlocking$0(TimeoutUtils.java:39)
at java.base/java.lang.Thread.run(Thread.java:829)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635526241
##########
accord-core/src/main/java/accord/utils/CheckpointIntervalArray.java:
##########
@@ -213,9 +213,6 @@ else if ((ri & BIT29) != 0)
forEachScanOrCheckpoint.accept(p1, p2, p3, p4, i);
}
- if (start == end)
Review Comment:
looks like a simple fix in `org.apache.cassandra.index.accord.CheckpointIntervalArrayIndex.SegmentSearcher#intersects`
```
searcher.forEach(start, end, (i1, i2, i3, i4, index) -> {
stats.matches++;
callback.accept(reader.copyTo(accessor.get(indexInput, index), buffer));
}, (i1, i2, i3, i4, startIdx, endIdx) -> {
if (startIdx == endIdx)
return;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1633769176
##########
accord-core/src/main/java/accord/local/SerializerSupport.java:
##########
@@ -88,6 +87,7 @@ public class SerializerSupport
ImmutableSet.<MessageType>builder()
.addAll(PRE_ACCEPT_STABLE_TYPES)
.addAll(APPLY_TYPES)
+ .add(PROPAGATE_OTHER_MSG)
Review Comment:
is this true? `accord.messages.Propagate#type`
```
@Override
public MessageType type()
{
// TODO (now): this logic doesn't work now we permit upgrading; need to pick the maximum *possible* status we might propagate
// might be better to
switch (achieved.propagatesStatus())
{
case Applied:
case PreApplied:
if (toEpoch >= committedExecuteAt.epoch())
return MessageType.PROPAGATE_APPLY_MSG;
case Committed:
case Stable:
return MessageType.PROPAGATE_STABLE_MSG;
case PreCommitted:
if (!achieved.definition.isKnown())
return MessageType.PROPAGATE_OTHER_MSG;
case PreAccepted:
return MessageType.PROPAGATE_PRE_ACCEPT_MSG;
default:
return MessageType.PROPAGATE_OTHER_MSG;
}
}
```
if we reach applied we would be `PROPAGATE_STABLE_MSG` or `PROPAGATE_APPLY_MSG`. This means that the only cases where this happens are below

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "belliottsmith (via GitHub)" <gi...@apache.org>.
belliottsmith commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1634740146
##########
accord-core/src/main/java/accord/messages/ApplyThenWaitUntilApplied.java:
##########
@@ -87,9 +87,9 @@ public ApplyThenWaitUntilApplied(Node.Id to, Topologies topologies, Timestamp ex
this.notify = notify == null ? null : notify.slice(slice);
}
- protected ApplyThenWaitUntilApplied(TxnId txnId, Participants<?> readScope, long executeAtEpoch, Timestamp executeAt, FullRoute<?> route, PartialTxn txn, PartialDeps deps, Writes writes, Result result, Seekables<?, ?> notify)
+ protected ApplyThenWaitUntilApplied(TxnId txnId, Participants<?> readScope, Timestamp executeAt, FullRoute<?> route, PartialTxn txn, PartialDeps deps, Writes writes, Result result, Seekables<?, ?> notify)
{
- super(txnId, readScope, executeAtEpoch);
Review Comment:
iirc ExclusiveSyncPoints maybe supply a different execution epoch. BUT I need to revisit how ExclusiveSyncPoints are executed anyway, to simplify some other stuff (and also fix some minor correctness issues across range movements). So, if this doesn't clearly break anything don't worry about it, they'll get their own dedicated execution class when I do that.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635514134
##########
accord-core/src/main/java/accord/primitives/RangeDeps.java:
##########
@@ -18,24 +18,55 @@
package accord.primitives;
-import accord.api.Key;
-import accord.api.RoutingKey;
-import accord.utils.*;
-import accord.utils.SortedArrays.SortedArrayList;
-import net.nicoulaj.compilecommand.annotations.DontInline;
-import net.nicoulaj.compilecommand.annotations.Inline;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.BitSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Stream;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
+
+import accord.api.Key;
+import accord.api.RoutingKey;
+import accord.utils.ArrayBuffers;
+import accord.utils.IndexedBiConsumer;
+import accord.utils.IndexedConsumer;
+import accord.utils.IndexedQuadConsumer;
+import accord.utils.IndexedRangeQuadConsumer;
+import accord.utils.Invariants;
+import accord.utils.RelationMultiMap;
+import accord.utils.SearchableRangeList;
+import accord.utils.SortedArrays;
+import accord.utils.SortedArrays.SortedArrayList;
+import accord.utils.SymmetricComparator;
+import accord.utils.TriFunction;
+import net.nicoulaj.compilecommand.annotations.DontInline;
+import net.nicoulaj.compilecommand.annotations.Inline;
-import static accord.utils.ArrayBuffers.*;
Review Comment:
nope, not asking to keep it, more calling out its a good find... your patch is good here, no work to be done =)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "aweisberg (via GitHub)" <gi...@apache.org>.
aweisberg commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635516162
##########
accord-core/src/main/java/accord/messages/ApplyThenWaitUntilApplied.java:
##########
@@ -87,9 +87,9 @@ public ApplyThenWaitUntilApplied(Node.Id to, Topologies topologies, Timestamp ex
this.notify = notify == null ? null : notify.slice(slice);
}
- protected ApplyThenWaitUntilApplied(TxnId txnId, Participants<?> readScope, long executeAtEpoch, Timestamp executeAt, FullRoute<?> route, PartialTxn txn, PartialDeps deps, Writes writes, Result result, Seekables<?, ?> notify)
+ protected ApplyThenWaitUntilApplied(TxnId txnId, Participants<?> readScope, Timestamp executeAt, FullRoute<?> route, PartialTxn txn, PartialDeps deps, Writes writes, Result result, Seekables<?, ?> notify)
{
- super(txnId, readScope, executeAtEpoch);
Review Comment:
Currently this is only used by inclusive sync points. Exclusive uses `WaitUntilApplied` and provides the `TxnId` as the `executionEpoch`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "dcapwell (via GitHub)" <gi...@apache.org>.
dcapwell commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635516435
##########
accord-core/src/main/java/accord/utils/CheckpointIntervalArray.java:
##########
@@ -213,9 +213,6 @@ else if ((ri & BIT29) != 0)
forEachScanOrCheckpoint.accept(p1, p2, p3, p4, i);
}
- if (start == end)
Review Comment:
I don't remember but here are a few places you should run tests multiple times to see if anything breaks
`org.apache.cassandra.index.accord.CheckpointIntervalArrayIndexTest`
`org.apache.cassandra.utils.RangeTreeTest`
`accord.utils.SearchableRangeListTest`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "aweisberg (via GitHub)" <gi...@apache.org>.
aweisberg commented on code in PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#discussion_r1635536365
##########
accord-core/src/main/java/accord/local/SerializerSupport.java:
##########
@@ -88,6 +87,7 @@ public class SerializerSupport
ImmutableSet.<MessageType>builder()
.addAll(PRE_ACCEPT_STABLE_TYPES)
.addAll(APPLY_TYPES)
+ .add(PROPAGATE_OTHER_MSG)
Review Comment:
It's already referenced here https://github.com/apache/cassandra-accord/blob/trunk/accord-core/src/main/java/accord/local/SerializerSupport.java#L415 and seems to assume everything might be missing.
In this case what needed to propagate was invalidation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] ApplyThenWaitUntilApplied supplies wrong epoch for executeAtEpoch [cassandra-accord]
Posted by "belliottsmith (via GitHub)" <gi...@apache.org>.
belliottsmith commented on PR #96:
URL: https://github.com/apache/cassandra-accord/pull/96#issuecomment-2175879460
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org