-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
Generate changelog in
|
...ests-shared/src/test/java/com/palantir/atlasdb/transaction/impl/SnapshotTransactionTest.java
Show resolved
Hide resolved
@@ -745,7 +823,38 @@ public void testReadMyWritesColumnRangePagingTransaction() { | |||
} | |||
|
|||
@Test | |||
public void testReadMyDeletesColumnRangePagingTransaction() { | |||
public void testReadMyWritesColumnRangePagingTransaction_iterator() { | |||
Transaction t = startTransaction(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a better/easier/clearer test would be doing the setup as normal, and then assert in the batching visitable view, and then do the iterator view, and then assert that the contents are the same? at the same time, not too fussed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, got stuck in this pattern after touching a few tests where it was not appropriate to combine the two
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I consolidated in the few cases where it was safe to do so without making the test harder to understand or where the it was important to the test itself
...impl-shared/src/main/java/com/palantir/atlasdb/transaction/impl/SerializableTransaction.java
Show resolved
Hide resolved
Added a few more tests to explicitly cover the case where we do read a result from the row, but only conflict with another writer if we attempt to read past the first result. |
...src/main/java/com/palantir/atlasdb/transaction/impl/AbstractSerializableTransactionTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small question about a test, but is likely just misunderstanding, so will approve.
Goals (and why):
Adds a new method to tables
getRowsColumnRangeIterator
that is similar togetRowsColumnRange
, except it returns anIterator
instead of aBatchingVisitable
.Implementation Description (bullets):
Mostly modifications to generated tables that are checked in.
Testing (What was existing testing like? What have you done to improve it?):
Copied existing tests using
getRowsColumnRange
. I didn't want to combine the testing in case any implementation changes in the future, and the additional tests should be cheap. The contract should be the same, so existing tests should cover the functionality.Concerns (what feedback would you like?):
Where should we start reviewing?:
Skip all the generated files, everything else should be relevant and fairly quick.
Priority (whenever / two weeks / yesterday):